query-fec299a836c49948d18ffbf94f87623f
Biggest catastrophesHello, I am surprised not to see any illnesses in these results :
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel (sample(?geo) as ?coord) (sample(?typeLabel) as ?typeLabel) (max(?morts) as ?maxmorts) WHERE {
?type wdt:P279* wd:Q3839081 .
?item wdt:P31 ?type ;
wdt:P625 ?geo .
?item wdt:P1120 ?morts
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
group by ?item ?itemLabel
order by desc(?maxmorts)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?coord")
v4("?geo"):::projected
v3("?item"):::projected
v8("?maxmorts")
v5("?morts"):::projected
v2("?type")
v8("?typeLabel"):::projected
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q3839081"]):::iri
v2 --"wdt:P279"--> c2
v3 --"wdt:P31"--> v2
v3 --"wdt:P625"--> v4
v3 --"wdt:P1120"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind3[/"sample(?geo)"/]
v4 --o bind3
bind3 --as--o v7
bind4[/"sample(?typeLabel)"/]
v8 --o bind4
bind4 --as--o v8
bind5[/"max(?morts)"/]
v5 --o bind5
bind5 --as--o v8