what is the {replaces} for {Ho Chi Minh} has {position held} as {General Secretary of the Communist Party of Vietnam} ?
In Ho Chi Minh City, who has replaced the General Secretary of the Communist Party of Vietnam?
Who has replaced as General Secretary of the Communist Party of Vietnam in Ho Chi Minh city?
SELECT ?f WHERE { ?y property:replaces ?f . ?y property:position_held resource:General_Secretary_of_the_Communist_Party_of_Vietnam . resource:Ho_Chi_Minh property:position_held ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36014> .
?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/Q848786> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q36014 p:P39 ?s . ?s ps:P39 wd:Q848786 . ?s pq:P1365 ?value}