What is {position held} of {Thomas Jefferson} that is {replaces} is {Benjamin Franklin} ?
What role did Thomas Jefferson have?
What is the position of Thomas Jefferson that is by Benjamin Franklin?
SELECT ?p WHERE { ?b property:replaces resource:Benjamin_Franklin . resource:Thomas_Jefferson property:position_held ?b . ?b property:position_held ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11812> .
?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/Q34969>
} 

SELECT ?obj WHERE { wd:Q11812 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q34969 }