What is the {lower-tier municipality} for {shares border with} of {Ottawa}
What district offers a border with Ottawa?
What municipality shares a border with Ottawa?
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:lower-tier_municipality . resource:Ottawa property:shares_border_with ?q }
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/Q15210668> } 
 select distinct ?obj where { wd:Q1930 wdt:P47 ?obj . ?obj wdt:P31 wd:Q15210668 } 
Arnprior The Nation Clarence-Rockland Mississippi Mills Russell North Dundas North Grenville Beckwith Montague