query-3f107d86199e79e3fd7f72bdd824ffbe
TODO
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 wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dateOfBirth where
{
{select ?item ?dateOfBirth
WHERE
{
?item wdt:P569 ?dateOfBirth .
FILTER("1776-00-00"^^xsd:date <= ?dateOfBirth)
?item wdt:P19/wdt:P131* wd:Q30.
FILTER NOT EXISTS {?item wdt:P27 wd:Q30 . }
} } ?item wdt:P31 wd:Q5.
# SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?dateOfBirth"):::projected
v1("?item"):::projected
a1((" "))
c8(["wd:Q5"]):::iri
c2(["wd:Q30"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P27"--> e0c2
e0v1("?item"):::projected
e0c2(["wd:Q30"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"wdt:P27"--> c2
f1[["'1776-00-00^^xsd:date' <= ?dateOfBirth"]]
f1 --> v2
v1 --"wdt:P569"--> v2
v1 --"wdt:P19"--> a1
a1 --"wdt:P131"--> c2
v1 --"wdt:P31"--> c8