what is the {replaces} for {Hendrik Verwoerd} has {position held} as {Prime Minister of South Africa} ?
What was the name of the person who replaced Hendrik Verwoerd as the Prime Minister of South Africa?
Who replaced Hendrik Verwoerd as Prime Minister of South Africa?
SELECT ?t WHERE { ?i property:replaces ?t . resource:Hendrik_Frensch_Verwoerd property:position_held ?i . ?i property:position_held resource:Prime_Minister_of_South_Africa }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q297000> .
?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/Q1511951> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q297000 p:P39 ?s . ?s ps:P39 wd:Q1511951 . ?s pq:P1365 ?value}