what is the {replaces} for {Najib Razak} has {position held} as {Deputy Prime Minister of Malaysia} ?
Who took over the position of Deputy Prime Minister of Malaysia after Najib Razak?
Who replaced Najib Razak as Deputy Prime Minister of Malaysia?
SELECT ?u WHERE { ?p property:replaces ?u . resource:Najib_Razak property:position_held ?p . ?p property:position_held resource:Deputy_Prime_Minister_of_Malaysia }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57675> .
?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> <http://wikidata.dbpedia.org/resource/Q5261073> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q57675 p:P39 ?s . ?s ps:P39 wd:Q5261073 . ?s pq:P1365 ?value}