query-2bfcad706c6742267868491b2034d00d

rq turtle/ttl

Query for the 3 big cities of the Republic of KazakhstanThis query returns the three cities that do not belong to any region.

Use at

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#>
SELECT DISTINCT ?city ?cityLabel 
WHERE {
  ?city wdt:P31/wdt:P279* wd:Q515;
        wdt:P131 wd:Q232. 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
ORDER BY ?cityLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?city"):::projected v1("?cityLabel"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c3(["wd:Q515"]):::iri c9(["de,en"]):::literal c5(["wd:Q232"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P131"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end