Question: What offices did Theodore Roosevelt hold where he ended his governmental position before 16 January 2010?
Answer(s):
answer: President

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.07hyk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07hyk ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.basic_title ?x .
?x ns:government.political_appointer.appointees ?c .
?c ns:government.government_position_held.to ?num .
FILTER (?num < "2010-01-16"^^xsd:dateTime) . 
}