What is {is in the village of} of {borders} of {Terni} ?
Who is {is within the town of} of {borders} of {Terni} ?
Who is {is in the village of} of {borders} of {Terni} ?
SELECT ?r WHERE { resource:Terni property:shares_border_with ?h . ?h property:located_in_the_administrative_territorial_entity ?r }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8621> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P131> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q8621 wdt:P47 ?X . ?X wdt:P131 ?answer}
Province of Terni Province of Terni Province of Terni Province of Terni Province of Terni Province of Terni Province of Terni Province of Rieti Province of Perugia Province of Rieti Province of Rieti