What is {position held} of {Liu Shaoqi} that is {replaced by} is {Li Xiannian} ?
The Position Li Xiannian replaced Liu Shaoqi?
At what position was Liu Shaoqi replaced by Li Xiannian?
SELECT ?p WHERE { ?s property:replaced_by resource:Li_Xiannian . ?s property:position_held ?p . resource:Liu_Shaoqi property:position_held ?s }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16988> .
?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/P1366> <http://wikidata.dbpedia.org/resource/Q311413>
} 

SELECT ?obj WHERE { wd:Q16988 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q311413 }