What is the {city} for {shares border with} of {Ottawa}
What is Ottawa's border town for shares?
What is Ottawa's border town for shares?
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:city . resource:Ottawa property:shares_border_with ?c }
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/Q515> } 
 select distinct ?obj where { wd:Q1930 wdt:P47 ?obj . ?obj wdt:P31 wd:Q515 } 
Clarence-Rockland