query-a35bb8fea316bdeea2f2c14e8b8b57ea
title: Natual Disasters SELECT DISTINCT ?item ?itemLabel ?deaths ?cost ?date ?starttime ?endtime ?geo ?location WHERE { ?item wdt:P31/wdt:P279* wd:Q8065. OPTIONAL { ?item wdt:P1120 ?deaths } . OPTIONAL { ?item wdt:P2630 ?cost } . OPTIONAL { ?item wdt:P585 ?date } . OPTIONAL { ?item wdt:P580 ?starttime } . OPTIONAL { ?item wdt:P582 ?endtime } . OPTIONAL { ?item wdt:P625 ?geo } . OPTIONAL { ?item wdt:P276/wdt:P625 ?location } . SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }
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#>
#title: Natual Disasters
SELECT DISTINCT ?item ?itemLabel ?deaths ?cost ?date ?starttime ?endtime ?geo ?location WHERE
{
?item wdt:P31/wdt:P279* wd:Q8065.
OPTIONAL { ?item wdt:P1120 ?deaths } .
OPTIONAL { ?item wdt:P2630 ?cost } .
OPTIONAL { ?item wdt:P585 ?date } .
OPTIONAL { ?item wdt:P580 ?starttime } .
OPTIONAL { ?item wdt:P582 ?endtime } .
OPTIONAL { ?item wdt:P625 ?geo } .
OPTIONAL { ?item wdt:P276/wdt:P625 ?location } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cost"):::projected
v4("?date"):::projected
v2("?deaths"):::projected
v6("?endtime"):::projected
v7("?geo"):::projected
v1("?item"):::projected
v8("?location"):::projected
v5("?starttime"):::projected
a1((" "))
a2((" "))
c14(["en"]):::literal
c12(["bd:serviceParam"]):::iri
c3(["wd:Q8065"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1120".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2630".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P585".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P580".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P582".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P276".-> a2
a2 --"wdt:P625"--> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end