query-719143fd06b8deb129e4ecee7a2e63aa
Persons
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q118220495>
SELECT
(xsd:date(?death_datetime) AS ?date_of_death)
?person ?personLabel ?personDescription
WHERE {
?person wdt:P119 target: .
OPTIONAL {
?person wdt:P570 ?death_datetime .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?date_of_death)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date_of_death")
v3("?death_datetime"):::projected
v2("?person"):::projected
c5(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q118220495]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P119"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"http://www.w3.org/2001/XMLSchema#date(?death_datetime)"/]
v3 --o bind0
bind0 --as--o v4