query-7f8b3aa4966d013625e746328d381c82
People born before the year 1900, but no date of death (P570) SELECT DISTINCT ?item ?itemLabel WHERE { ?wikilink schema:about ?item . { ?wikilink schema:isPartOf https://or.wikipedia.org/ . } ?item p:P569 ?birthclaim . MINUS { ?item p:P570 [] } ?birthclaim ps:P569 ?birth . FILTER(?birth < "+1900-00-15T00:00:00Z"^^xsd:dateTime) . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } } LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# People born before the year 1900, but no date of death (P570)
SELECT DISTINCT ?item ?itemLabel
WHERE {
?wikilink schema:about ?item .
{ ?wikilink schema:isPartOf <https://or.wikipedia.org/> . }
?item p:P569 ?birthclaim .
MINUS { ?item p:P570 [] }
?birthclaim ps:P569 ?birth .
FILTER(?birth < "+1900-00-15T00:00:00Z"^^xsd:dateTime) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birth")
v4("?birthclaim")
v3("?item"):::projected
v2("?wikilink")
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4([https://or.wikipedia.org/]):::iri
f0[["?birth < '+1900-00-15T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c4
v3 --"p:P569"--> v4
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:P570"--> a1
end
v4 --"p:statement/P569"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end