What is {capital city} of {is in the village of} of {Teknaf Upazila} ?
What is the capital city within the town of Teknaf Upazila?
What is the capital city in the village of Teknaf Upazila?
SELECT ?p WHERE { resource:Teknaf_Upazila property:located_in_the_administrative_territorial_entity ?q . ?q property:capital ?p }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3348523> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q3348523 wdt:P131 ?X . ?X wdt:P36 ?answer}
Cox's Bazar