Question: Who was the first president for the country that has Dmitry Medvedev as a government official?
Answer(s):
answer: Boris Yeltsin

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:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.08wdkk . 
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.060c4 .
?y ns:government.government_position_held.from ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1