query-0b35db0082f09de8c3057ccb6a8cb6cb
Gemeinden mit Einwohner-Aktualisierung vom 30. September 2019
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?muni ?key ?muniLabel ?instanceLabel ?population WHERE {
VALUES ?instance {wd:Q262166 wd:Q42744322} .
?muni wdt:P439 ?key .
?muni p:P31 ?instanceBlock .
?instanceBlock v:P31 ?instance .
FILTER NOT EXISTS {?instanceBlock pq:P582 ?end} .
?muni p:P1082 ?populationBlock .
?populationBlock v:P1082 ?population .
?populationBlock wikibase:rank wikibase:PreferredRank .
?populationBlock pq:P585 "2019-09-30"^^xsd:date
SERVICE wikibase:label{bd:serviceParam wikibase:language "de"}
}
ORDER BY ?key
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?end")
v4("?instance")
v2("?instanceBlock")
v1("?key"):::projected
v5("?muni"):::projected
v7("?population"):::projected
v6("?populationBlock")
c14(["de"]):::literal
c8(["wikibase:PreferredRank"]):::iri
c10(["2019-09-30^^xsd:date"]):::literal
c12(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0v2
e0v2("?end"):::projected
e0v1("?instanceBlock"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"p:qualifier/P582"--> v3
bind1[/VALUES ?instance/]
bind1-->v4
bind10(["wd:Q262166"])
bind10 --> bind1
bind11(["wd:Q42744322"])
bind11 --> bind1
v5 --"p:direct/P439"--> v1
v5 --"p:P31"--> v2
v2 --"p:statement/P31"--> v4
v5 --"p:P1082"--> v6
v6 --"p:statement/P1082"--> v7
v6 --"wikibase:rank"--> c8
v6 --"p:qualifier/P585"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end