What is {position held} of {Sukarno} that is {replaces} is {Djuanda Kartawidjaja} ?
What position did Djuanda Kartawidjaja  take after he was replaced by Sukarano?
What was the position held by Djuanda Kartawidjaja after he replaced Sukarno?
SELECT ?i WHERE { ?m property:replaces resource:Djuanda_Kartawidjaja . ?m property:position_held ?i . resource:Sukarno property:position_held ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q76127> .
?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/Q2670453>
} 

SELECT ?obj WHERE { wd:Q76127 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q2670453 }