Question: Paris is the capital of what country where Perpignan is located?
Answer(s):
answer: France

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.09nkq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09nkq ns:location.location.containedby ?x .
?x ns:location.country.capital ns:m.05qtj . 
}