query-cdc3dab3bf91640cb45303e47f0a9c6b

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 ?type ?typeLabel (COUNT(?item) AS ?count)
WHERE {
    ?item wdt:P31/wdt:P279+ wd:Q5 .
    ?item wdt:P31 ?type.
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }.
}
GROUP BY ?type ?typeLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v2("?item"):::projected v3("?type"):::projected a1((" ")) c5(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c7(["en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P31"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4