query-33895e768341485f889c66290cf7800d
TODO
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#>
SELECT DISTINCT ?Ort ?OrtLabel WHERE {
?Ort (wdt:P131+) wd:Q42497;
(wdt:P31/(wdt:P279*)) wd:Q486972.
FILTER(NOT EXISTS { ?Ort wdt:P2503 ?GOV. })
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?GOV")
v1("?Ort"):::projected
a1((" "))
c6(["wd:Q486972"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c8(["bd:serviceParam"]):::iri
c3(["wd:Q42497"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P2503"--> e0v2
e0v2("?GOV"):::projected
e0v1("?Ort"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P2503"--> v2
v1 --"wdt:P131"--> c3
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end