What is {position held} of {Hua Guofeng} that is {replaces} is {Zhou Enlai} ?
What was Hua Guofeng's position?
What was the position of Hua Guofeng who replaced Zhou Enlai?
SELECT ?i WHERE { ?x property:position_held ?i . resource:Hua_Guofeng property:position_held ?x . ?x property:replaces resource:Zhou_Enlai }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41570> .
?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/Q17410>
} 

SELECT ?obj WHERE { wd:Q41570 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q17410 }