Question: In which states does the Connecticut River flow through, where the US state that has a capital called Boston?
Answer(s):
answer: Massachusetts

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.01ldvs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01ldvs ns:location.location.partially_containedby ?x .
?x ns:common.topic.notable_types ns:m.0kpys4 .
?x ns:location.us_state.capital ns:m.01cx_ . 
}