What is {position held} of {Rodrigo Duterte} that is {replaces} is {Benigno Aquino III} ?
In what job was Rodrigo Duterte placed following Benigno Aquino III?
What position did Rodrigo Duterte hold afteer Benigno Aquino III?
SELECT ?d WHERE { resource:Rodrigo_Duterte property:position_held ?z . ?z property:replaces resource:Benigno_Aquino_III . ?z property:position_held ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q457786> .
?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/Q1464>
} 

SELECT ?obj WHERE { wd:Q457786 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q1464 }