query-d030563bbcf0609416a716cbe02c474a
Places ambassadors died
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# places Ambassadors died
select ?person ?personLabel ?coordinates where
{
?person p:P39 ?positionStatement . ?positionStatement ps:P39 ?position.
{ ?position wdt:P31 wd:Q18115939 . } union { ?position wdt:P31 wd:Q56760832 }
?person wdt:P20 ?died. ?died wdt:P625 ?coordinates .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
#defaultView:Map
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coordinates"):::projected
v4("?died")
v1("?person"):::projected
v3("?position")
v2("?positionStatement")
c4(["wd:Q18115939"]):::iri
c9(["bd:serviceParam"]):::iri
c5(["wd:Q56760832"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> c4
end
union0r <== or ==> union0l
end
v1 --"p:direct/P20"--> v4
v4 --"p:direct/P625"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end