query-f33cbe8d6d290ffa7ed850e53cc1123d
People from Slovenia with age over 100 years and no date of death SELECT DISTINCT ?item ?itemLabel ?_date_of_birth WHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P27 wd:Q215. ?item wdt:P569 ?_date_of_birth . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } FILTER (NOT EXISTS{ ?item wdt:P570 ?date} && year(?_date_of_birth) < 1920 ) }
Use at
- https://query.wikidata.org/sparql
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#>
# People from Slovenia with age over 100 years and no date of death
SELECT DISTINCT ?item ?itemLabel ?_date_of_birth
WHERE
{
?item wdt:P31 wd:Q5 .
?item wdt:P27 wd:Q215.
?item wdt:P569 ?_date_of_birth .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
FILTER (NOT EXISTS{ ?item wdt:P570 ?date} && year(?_date_of_birth) < 1920 )
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_date_of_birth"):::projected
v2("?date")
v1("?item"):::projected
c6(["wd:Q215"]):::iri
c9(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c11(["en"]):::literal
f0[["not year-from-dateTime(?_date_of_birth) < '1920^^xsd:integer'"]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P570"--> e0v2
e0v2("?date"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> v3
v1 --"wdt:P570"--> v2
v1 --"wdt:P31"--> c4
v1 --"wdt:P27"--> c6
v1 --"wdt:P569"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end