query-56c6d0ea226ff7a6d62155b96c11adb9

rq turtle/ttl

Counts by TypeQuery:

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(*) as ?count) where {
  ?item wdt:P31 ?type .
  ?type wdt:P279* wd:Q4671277 .
  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") v3("?type"):::projected c5(["bd:serviceParam"]):::iri c3(["wd:Q4671277"]):::iri c7(["en"]):::literal v2 --"wdt:P31"--> v3 v3 --"wdt:P279"--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"count(*)"/] bind1 --as--o v4