query-fb740937d816912f350bf663d082c544
title:Persone con almeno un id ed eventuali date di nascita e/o morte SELECT DISTINCT ?person ?personLabel ?birthdate ?deathdate WHERE { ?person wdt:P8750 ?id . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthdate } . OPTIONAL { ?person wdt:P570 ?deathdate } . SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,de,fr,es". } } ORDER BY ?birthdate ?deathdate
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#>
#title:Persone con almeno un id ed eventuali date di nascita e/o morte
SELECT DISTINCT ?person ?personLabel ?birthdate ?deathdate
WHERE {
?person wdt:P8750 ?id .
?person wdt:P31 wd:Q5 .
OPTIONAL { ?person wdt:P569 ?birthdate } .
OPTIONAL { ?person wdt:P570 ?deathdate } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,de,fr,es". }
}
ORDER BY ?birthdate ?deathdate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birthdate"):::projected
v2("?deathdate"):::projected
v4("?id")
v3("?person"):::projected
c7(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c9(["it,en,de,fr,es"]):::literal
v3 --"wdt:P8750"--> v4
v3 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P570".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end