Question: What is the capital of the place that John Day River located in?
Answer(s):
answer: Salem

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.partially_contains ns:m.0341sx . 
?c ns:base.aareas.schema.administrative_area.capital ?x .
}