Question: What location that appointed John V of Portugal to govermental position did the Habsburg family control?
Answer(s):
answer: Kingdom of Portugal
answer: Kingdom of Portugal
answer: Kingdom of Portugal

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.03lht)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03lht ns:people.family.country ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.01367n . 
}