what is the {replaced by} for {Park Chung-hee} has {position held} as {president of South Korea} ?
Who replaced the president of South Korea?
Who is the replacement for the president of South Korea?
SELECT ?m WHERE { resource:Park_Chung-hee property:position_held ?l . ?l property:position_held resource:president_of_South_Korea . ?l property:replaced_by ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q14356> .
?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/Q6296418> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q14356 p:P39 ?s . ?s ps:P39 wd:Q6296418 . ?s pq:P1366 ?value}