query-247e1f29fd10172a94deb5ed1fc0ba5f

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 ?class ?classLabel ?count WHERE {
  {
    SELECT ?class (COUNT(*) AS ?count) WHERE {
       ?a wdt:P31 wd:Q484170 .
       ?b wdt:P31 ?class .
       ?a wdt:P47 ?b .
    } GROUP BY ?class
  } . 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . }
}
ORDER BY DESC(?count) ?classLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?a") v4("?b") v5("?class"):::projected v2("?classLabel"):::projected v6("?count"):::projected c5(["bd:serviceParam"]):::iri c7(["fr"]):::literal c2(["wd:Q484170"]):::iri v3 --"wdt:P31"--> c2 v4 --"wdt:P31"--> v5 v3 --"wdt:P47"--> v4 bind1[/"count(*)"/] bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end