query-1b30a94be85dfdcbf32b324d6e7e2a2c
Type of events with different Number of deaths
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?natureLabel (COUNT(?nature) AS ?cnt) WHERE {
{
SELECT ?item WHERE {
?item wdt:P1120 ?deaths .
} GROUP BY ?item HAVING(COUNT(?deaths) > 1)
}.
?item wdt:P31 ?nature.
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} GROUP BY ?natureLabel ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_42b5416610844a34809f33a099ae9de174329")
v6("?cnt")
v3("?deaths")
v2("?item")
v5("?nature"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
f0[[" > '1^^xsd:integer'"]]
f0 --> a1
v2 --"wdt:P1120"--> v3
bind2[/"count(?deaths)"/]
v3 --o bind2
bind2 --as--o v4
v2 --"wdt:P31"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind4[/"count(?nature)"/]
v5 --o bind4
bind4 --as--o v6