What is {position held} of {Olusegun Obasanjo} that is {replaces} is {Joaquim Chissano} ?
Olusegun Obasanjo replaced Joaquim Chissan in which position?
At what position did Olusegun Obasanjo replace Joaquim Chissano?
SELECT ?y WHERE { ?j property:replaces resource:Joaquim_Chissano . resource:Olusegun_Obasanjo property:position_held ?j . ?j property:position_held ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202006> .
?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/Q208355>
} 

SELECT ?obj WHERE { wd:Q202006 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q208355 }