query-45bbd1c7b5e5e9c8d839f09e9430f9ce

rq turtle/ttl

الرؤساء وتصنيف أسباب موتهم Presidents and their causes of death ranking Presidents and their causes of death ranking Pořadí prezidentů a příčin jejich úmrtí Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Les présidents classés selon les causes de leur mort Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Classifica dei presidenti e delle loro cause di morte Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidenten en hun doodsoorzaken rangschikking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidenter och en ranking över deras dödsorsaker Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking Presidents and their causes of death ranking 总统及死因的常见度排名

Use at

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#>
#defaultView:BubbleChart
SELECT ?cid ?cause (count(*) as ?count)
WHERE
{
  ?pid wdt:P39 wd:Q11696 .
  ?pid wdt:P509 ?cid .
  OPTIONAL {
    ?cid rdfs:label ?cause FILTER (lang(?cause) = "en") .
  }
}
GROUP BY ?cid ?cause
ORDER BY DESC(?count) ASC(?cause)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cause"):::projected v4("?cid"):::projected v5("?count") v3("?pid") c3(["wd:Q11696"]):::iri v3 --"wdt:P39"--> c3 v3 --"wdt:P509"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end bind1[/"count(*)"/] bind1 --as--o v5