query-5dd923d67e3d6bc1f193a5dcd17716e7
Gemeinden mit GrĂ¼ndung nach dem 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 ?inception WHERE {
VALUES ?instance {wd:Q116457956 wd:Q42744322} .
?muni wdt:P439 ?key .
?muni p:P31 ?instanceBlock .
?instanceBlock v:P31 ?instance .
FILTER NOT EXISTS {?instanceBlock pq:P582 ?end} .
?muni wdt:P571 ?inception FILTER(?inception > "2019-09-30"^^xsd:dat)
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;
v4("?end")
v2("?inception"):::projected
v5("?instance")
v3("?instanceBlock")
v1("?key"):::projected
v6("?muni"):::projected
c10(["de"]):::literal
c8(["bd:serviceParam"]):::iri
f0[["?inception > s2019-09-30^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f0 --> v2
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0v2
e0v2("?end"):::projected
e0v1("?instanceBlock"):::projected
end
f1--EXISTS--> f1e0
f1 --> v3
f1 --> c2
f1 --> v4
v3 --"p:qualifier/P582"--> v4
bind2[/VALUES ?instance/]
bind2-->v5
bind20(["wd:Q116457956"])
bind20 --> bind2
bind21(["wd:Q42744322"])
bind21 --> bind2
v6 --"p:direct/P439"--> v1
v6 --"p:P31"--> v3
v3 --"p:statement/P31"--> v5
v6 --"p:direct/P571"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end