What is the {town} for {shares border with} of {Ottawa}
[]
Name a town sharing a border with Ottawa.
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:town . resource:Ottawa property:shares_border_with ?y }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1930> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3957> } 
 select distinct ?obj where { wd:Q1930 wdt:P47 ?obj . ?obj wdt:P31 wd:Q3957 } 
Arnprior Mississippi Mills