query-0d82c7f1e4fcf3709fd16086b6c32d30
Vereinfacht:
Use at
- https://query.wikidata.org/sparql
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/>
#defaultView:Map
SELECT DISTINCT ?item ?coord WHERE {
{{?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q692630.
?item p:P131 ?statement1.
?statement1 (ps:P131/(wdt:P131*)) wd:Q64.
}}
OPTIONAL { ?item wdt:P625 ?coord }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coord"):::projected
v1("?item"):::projected
v2("?statement0")
v3("?statement1")
a1((" "))
a2((" "))
c8(["wd:Q64"]):::iri
c4(["wd:Q692630"]):::iri
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c4
v1 --"p:P131"--> v3
v3 --"p:statement/P131"--> a2
a2 --"p:direct/P131"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P625".-> v4
end