query-e7d09719ac93da09eeaa7972b36a9d25
Persons who died before their birth
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT ?person ?personLabel ?b ?d WHERE {
?person p:P569/psv:P569 ?bn .
?person p:P570/psv:P570 ?dn .
?bn wikibase:timeValue ?b .
?dn wikibase:timeValue ?d .
FILTER (?d < ?b) .
?bn wikibase:timePrecision "11"^^xsd:integer .
?dn wikibase:timePrecision "11"^^xsd:integer .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY ?personLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?b"):::projected
v5("?bn")
v2("?d"):::projected
v6("?dn")
v4("?person"):::projected
v1("?personLabel"):::projected
a1((" "))
a2((" "))
c7(["11^^xsd:integer"]):::literal
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
f0[["?d < ?b"]]
f0 --> v2
f0 --> v3
v4 --"p:P569"--> a1
a1 --"p:statement/value/P569"--> v5
v4 --"p:P570"--> a2
a2 --"p:statement/value/P570"--> v6
v5 --"wikibase:timeValue"--> v3
v6 --"wikibase:timeValue"--> v2
v5 --"wikibase:timePrecision"--> c7
v6 --"wikibase:timePrecision"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end