What is {position held} of {Theodore Roosevelt} that is {replaces} is {William McKinley} ?
What position did Theodore Roosevelt hold after William McKinley?
SELECT ?obj WHERE { wd:Q33866 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q35041 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33866> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1365> <http://wikidata.dbpedia.org/resource/Q35041>
} 

What role did Theodore Roosevelt occupy after William McKinley?