What is {position held} of {José Sarney} that is {replaced by} is {Itamar Franco} ?
In what role did Itamar Franco replace Jose Sarney?
what is position did Jose Sarney hold that was later taken over by Itamar Franco?
SELECT ?t WHERE { ?i property:position_held ?t . resource:José_Sarney property:position_held ?i . ?i property:replaced_by resource:Itamar_Franco }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q244997> .
?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/P1366> <http://wikidata.dbpedia.org/resource/Q485946>
} 

SELECT ?obj WHERE { wd:Q244997 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q485946 }