query-df12c7449cec4c2e993512a96a05c99a

rq turtle/ttl

Municipalties of Czech Republic, also both in english and in russian language. (P131)located in the administrative territorial entity Hi! I want to get the list of municipalities in Czech Republic. I want to see name of municipality in English, name of municipality in Russian, population, and . this oneSo as a result i want to get a table like I tried to do query by myself:

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 ?municipality_of_the_Czech_Republic ?municipality_of_the_Czech_RepublicLabel ?country ?countryLabel ?population ?located_in_the_administrative_territorial_entity ?located_in_the_administrative_territorial_entityLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?municipality_of_the_Czech_Republic wdt:P31 wd:Q5153359.
  OPTIONAL { ?municipality_of_the_Czech_Republic wdt:P17 ?country. }
  OPTIONAL { ?municipality_of_the_Czech_Republic wdt:P1082 ?population. }
  OPTIONAL { ?municipality_of_the_Czech_Republic wdt:P131 ?located_in_the_administrative_territorial_entity. }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?country"):::projected v4("?located_in_the_administrative_territorial_entity"):::projected v1("?municipality_of_the_Czech_Republic"):::projected v3("?population"):::projected c6(["wd:Q5153359"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P17".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1082".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P131".-> v4 end