Question: What is the capital of the location where the Ottawa River is partially located?
Answer(s):
answer: Toronto

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.location.partiallycontains ?k .
?k ns:location.partial_containment_relationship.partially_contains ns:m.0jqt2 . 
?c ns:location.province.capital ?x .
}