query-d368b521c485205de44a3b88421d3847
Jüngsten Personen (geboren oder gestorben in Dresden)
---------------------------------------------------------------------------------------
SELECT distinct ?item ?itemLabel ?itemDescription ?age ?pobLabel ?podLabel {
?item wdt:P1196 wd:Q8454 .
?item wdt:P1399 [] .
{?item wdt:P19 wd:Q1731} union {?item wdt:P20 wd:Q1731}
?item p:P569 [ a wikibase:BestRank ; psv:P569 [ wikibase:timeValue ?birth; wikibase:timePrecision ?precision_birth ] ] . ?item p:P570 [ a wikibase:BestRank ; psv:P570 [ wikibase:timeValue ?death; wikibase:timePrecision ?precision_death ] ] . FILTER (?precision_birth > 8 && ?precision_death > 8) BIND ((?death - ?birth)/365.25 AS ?age) #FILTER (?age <= 18.5)
optional {?item wdt:P19 ?pob. } optional {?item wdt:P20 ?pod. } SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en"} } ORDER BY ?age limit 50
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#---------------------------------------------------------------------------------------
# Jüngsten Personen (geboren oder gestorben in Dresden)
#---------------------------------------------------------------------------------------
SELECT distinct ?item ?itemLabel ?itemDescription ?age ?pobLabel ?podLabel {
# ?item wdt:P1196 wd:Q8454 .
# ?item wdt:P1399 [] .
{?item wdt:P19 wd:Q1731}
union
{?item wdt:P20 wd:Q1731}
?item p:P569 [ a wikibase:BestRank ;
psv:P569 [ wikibase:timeValue ?birth;
wikibase:timePrecision ?precision_birth ] ] .
?item p:P570 [ a wikibase:BestRank ;
psv:P570 [ wikibase:timeValue ?death;
wikibase:timePrecision ?precision_death ] ] .
FILTER (?precision_birth > 8 && ?precision_death > 8)
BIND ((?death - ?birth)/365.25 AS ?age)
#FILTER (?age <= 18.5)
optional {?item wdt:P19 ?pob. }
optional {?item wdt:P20 ?pod. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en"}
} ORDER BY ?age
limit 50