query-a8ab8edbd05ce1b065f04b74f9f85f3f

rq turtle/ttl

TODO

Use at

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#>
SELECT ?item ?itemLabel (COUNT(?things) AS ?count)
WHERE 
{
  ?item wdt:P31 wd:Q736917.
  ?item wdt:P17 wd:Q30 .
  ?things wdt:P921 ?item .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?count) ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?item"):::projected v2("?itemLabel"):::projected v4("?things"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q736917"]):::iri c4(["wd:Q30"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v3 --"wdt:P31"--> c2 v3 --"wdt:P17"--> c4 v4 --"wdt:P921"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(?things)"/] v4 --o bind1 bind1 --as--o v5