query-06e0256ac5e5bc446ed65bbf227851d8
Ukrainians who died in 2022
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 ?ukrainian ?ukrainianLabel ?birth ?death ?mannerLabel ?causeLabel WHERE {
?ukrainian wdt:P31 wd:Q5 .
?ukrainian wdt:P27 wd:Q212 .
OPTIONAL{?ukrainian wdt:P569 ?birth}
?ukrainian wdt:P570 ?death FILTER(year(?death)=2022) .
OPTIONAL{?ukrainian wdt:P1196 ?manner}
OPTIONAL{?ukrainian wdt:P509 ?cause}
SERVICE wikibase:label {bd:serviceParam wikibase:language "en"}
} ORDER BY DESC(?death) DESC(?birth)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?birth"):::projected
v5("?cause")
v1("?death"):::projected
v4("?manner")
v3("?ukrainian"):::projected
c13(["en"]):::literal
c5(["wd:Q212"]):::iri
c11(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
f0[["year-from-dateTime(?death) = '2022^^xsd:integer'"]]
f0 --> v1
v3 --"wdt:P31"--> c3
v3 --"wdt:P27"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v2
end
v3 --"wdt:P570"--> v1
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1196".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P509".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end