query-b9f5ac2e65b397e939252629a31f9ddf
Ehemalige Gemeinden, die noch wdt:P31 wd:Q262166 gesetzt (aber einen Wikipediaartikel) haben.
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX v: <http://www.wikidata.org/prop/statement/>
SELECT ?muni ?muniLabel ?end ?article WHERE {
?muni p:P31 ?instanceBlock .
?instanceBlock v:P31 wd:Q262166 .
OPTIONAL{?instanceBlock pq:P582 ?end}
?article schema:about ?muni . ?article schema:inLanguage "de"
SERVICE wikibase:label{bd:serviceParam wikibase:language "de"}
}
ORDER BY DESC(?end) ?muniLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v1("?end"):::projected
v4("?instanceBlock")
v3("?muni"):::projected
v2("?muniLabel"):::projected
c7(["de"]):::literal
c9(["bd:serviceParam"]):::iri
c3(["wd:Q262166"]):::iri
v3 --"p:P31"--> v4
v4 --"p:statement/P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P582".-> v1
end
v5 --"schema:about"--> v3
v5 --"schema:inLanguage"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c7
end