query-cebeef237657c971c6a07e68852e3f33
find burial date based on place of burial (P119)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?person ("P4602" as ?P) ?burial ?dod WHERE {
?person wdt:P31 wd:Q5 .
?person p:P119/pq:P580 ?burial .
?person wdt:P570 ?dod .
#MINUS { ?person wdt:P570 [] }.
BIND(ROUND((?burial - ?dod)) AS ?duration).
FILTER(?duration < 20).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?P")
v3("?burial"):::projected
v4("?dod"):::projected
v5("?duration")
v2("?person"):::projected
a1((" "))
c3(["wd:Q5"]):::iri
f0[["?duration < '20^^xsd:integer'"]]
f0 --> v5
v2 --"p:direct/P31"--> c3
v2 --"p:P119"--> a1
a1 --"p:qualifier/P580"--> v3
v2 --"p:direct/P570"--> v4
bind1[/"numeric-round(?burial - ?dod)"/]
v3 --o bind1
v4 --o bind1
bind1 --as--o v5
bind2[/"'P4602'"/]
bind2 --as--o v5