query-29f503d267cc465446b6e7567641c253

rq turtle/ttl

Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking Classement des causes générales de mortalité Rang de toutes les causes de mort Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking 死因の総合ランキング Algemene rangschikking van doodsoorzaken Rangschikken op oorzaak overlijden Overall causes of death ranking Övergripande dödsorsaker rankade Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking Overall causes of death ranking 死因排名概览

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
#TEMPLATE={"template":"Overall causes of death ranking of ?thing ","variables":{"?thing": {"query":"SELECT ?id  (COUNT(?id) AS ?count) WHERE {  ?sub wdt:P509 ?y.  ?sub wdt:P31 ?id. } GROUP BY ?id "} } }
SELECT ?cid ?cause (COUNT(*) AS ?count) WHERE {
  BIND(wd:Q5 AS ?thing)
  ?pid wdt:P31 ?thing;
      wdt:P509 ?cid.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?cid rdfs:label ?cause}
}
GROUP BY ?cid ?cause
ORDER BY DESC(?count) ?cause

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cause"):::projected v5("?cid"):::projected v6("?count") v4("?pid") v3("?thing") c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"'wd:Q5'"/] bind0 --as--o v3 v4 --"wdt:P31"--> v3 v4 --"wdt:P509"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 v5 --"rdfs:label"--> v2 end bind2[/"count(*)"/] bind2 --as--o v6