query-47e714804a6ea9b7a141fdcda99e5e86

rq turtle/ttl

Query for people born between 1602 and 1880 without a death date

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?h ?date
WHERE
{
    ?h wdt:P31 wd:Q5 .
    ?h wdt:P569 ?date .
    OPTIONAL {?h wdt:P570 ?d }
    FILTER (?date > "1601-01-01T00:00:00Z"^^xsd:dateTime)
    FILTER (?date < "1880-01-01T00:00:00Z"^^xsd:dateTime)
    FILTER (!bound(?d))
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?d") v2("?date"):::projected v3("?h"):::projected c4(["wd:Q5"]):::iri f0[["not bound(?d)"]] f0 --> v1 f1[["?date < '1880-01-01T00:00:00Z^^xsd:dateTime'"]] f1 --> v2 f2[["?date > '1601-01-01T00:00:00Z^^xsd:dateTime'"]] f2 --> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P569"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P570".-> v1 end