query-1d290a6a5ac6c017ee4e7544de2597dd
Query for all regions of the Republic of KazakhstanThis query returns all the 17 regions of the Republic of Kazakhstan.
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE {
?item wdt:P31 wd:Q836672;
p:P131 ?adminClaim.
?adminClaim ps:P131 wd:Q232.
FILTER NOT EXISTS { ?adminClaim pq:P582 ?endTime }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?adminClaim")
v3("?endTime")
v4("?item"):::projected
v1("?itemLabel"):::projected
c8(["bd:serviceParam"]):::iri
c3(["wd:Q836672"]):::iri
c10(["de,en"]):::literal
c6(["wd:Q232"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0v2
e0v1("?adminClaim"):::projected
e0v2("?endTime"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"p:qualifier/P582"--> v3
v4 --"p:direct/P31"--> c3
v4 --"p:P131"--> v2
v2 --"p:statement/P131"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end