query-ad431c11e673aed475fb1f4c7acb479e
Propertiesinstance of (P31)coordinate location (P625)dissolved, abolished or demolished date (P576)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?con ?conLabel ?loc ?enwp
WHERE { ?con wdt:P31 wd:Q27971968;
wdt:P625 ?loc.
FILTER NOT EXISTS {?con wdt:P576 ?end} # Not abolished
OPTIONAL{ ?enwp schema:about ?con. ?enwp schema:isPartOf <https://en.wikipedia.org/>}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"}
} ORDER BY ?conLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?con"):::projected
v1("?conLabel"):::projected
v3("?end")
v5("?enwp"):::projected
v4("?loc"):::projected
c7([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q27971968"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P576"--> e0v2
e0v1("?con"):::projected
e0v2("?end"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P576"--> v3
v2 --"wdt:P31"--> c3
v2 --"wdt:P625"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v2
v5 --"schema:isPartOf"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end