query-18e177caac5ea86d0a335ff5559236ca
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?sitelinks WHERE {
{
SELECT ?item ?sitelinks {
?item wdt:P31 wd:Q5 .
?item wdt:P21 wd:Q6581072 .
?item wikibase:sitelinks ?sitelinks .
FILTER(?sitelinks>40)
OPTIONAL { ?bewp schema:about ?item; schema:isPartOf <be.wikipedia.org/> }
FILTER(!BOUND(?bewp))
}
ORDER BY DESC(?sitelinks)
LIMIT 1000
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?sitelinks) ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?bewp")
v4("?item"):::projected
v2("?itemLabel"):::projected
v1("?sitelinks"):::projected
c5(["wd:Q6581072"]):::iri
c11(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9([https://query.wikidata.org/be.wikipedia.org/]):::iri
f0[["not bound(?bewp)"]]
f0 --> v3
f1[["?sitelinks > '40^^xsd:integer'"]]
f1 --> v1
v4 --"wdt:P31"--> c3
v4 --"wdt:P21"--> c5
v4 --"wikibase:sitelinks"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v4
v3 --"schema:isPartOf"--> c9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end