Question: What offices did Theodore Roosevelt hold and held a position until 2005?
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 "2005"^^xsd:dateTime . 
}