What is {is in the district of} of {Tripura}, that has {bordered by} is {Bhutan} ?
What is within the locale of Tripura that offers a border with Bhutan?
What is in the district of Tripura that shares a border with Bhutan?
SELECT ?q WHERE { ?q property:shares_border_with resource:Bhutan . resource:Tripura property:located_in_the_administrative_territorial_entity ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1363> . ?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> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q917> . }
SELECT ?answer WHERE { wd:Q1363 wdt:P131 ?answer . ?answer wdt:P47 wd:Q917}
India