Question: Name a town sharing a border with Ottawa.
SPARQL (Wikidata):  select distinct ?obj where { wd:Q1930 wdt:P47 ?obj . ?obj wdt:P31 wd:Q3957 } 
Answer: Arnprior, Mississippi Mills