query-ee30fab3d6df5e9fa049deebfbe31e3f
Sort by number of sitelinks (with image)
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
SELECT ?itemLabel ?count ?image WHERE {
?item wikibase:sitelinks ?count.
?item wdt:P31/wdt:P279* wd:Q466797.
# FILTER (SUBSTR(str(?sitelink), 11, 15) = ".wikipedia.org/") .
OPTIONAL {?item wdt:P18 ?image }
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru","en" }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?count"):::projected
v3("?image"):::projected
v2("?item")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["ru"]):::literal
c10(["en"]):::literal
c4(["wd:Q466797"]):::iri
v2 --"wikibase:sitelinks"--> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
c7 --"wikibase:language"--> c10
end