query-687b9d28a48eccb6f9df75955d3602ef
Map of birth and death placesHi! Given a query like
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#>
#defaultView:Map
SELECT ?person ?personLabel ?bp ?bpLabel ?bcoord ?dp ?dpLabel ?dcoord
WHERE {
?person wdt:P69 wd:Q1576779 .
OPTIONAL { ?person wdt:P19 ?bp . ?bp wdt:P625 ?bcoord . }
OPTIONAL { ?person wdt:P20 ?dp . ?dp wdt:P625 ?dcoord . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?bcoord"):::projected
v2("?bp"):::projected
v5("?dcoord"):::projected
v4("?dp"):::projected
v1("?person"):::projected
c2(["wd:Q1576779"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["it"]):::literal
v1 --"wdt:P69"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P19".-> v2
v2 --"wdt:P625"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P20".-> v4
v4 --"wdt:P625"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end