Question: The country where Perpignan is located, and was involved in the military conflict of the Battle of Talavera?
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:military.military_combatant.casualties ?c .
?c ns:military.casualties.military_conflict ns:m.03jyvj . 
}