What is {followed by} and {follows} of {{Communist Party of China} has {chairperson} as {Zhao Ziyang}}
Who held the Chairperson position for China's Communist Party before and after Zhao Ziyang?
Who held the position of chairperson for the Communist Party of China before and after Zhao Ziyang?
SELECT ?i ?j WHERE { resource:Communist_Party_of_China property:chairperson ?n . ?n property:chairperson resource:Zhao_Ziyang . ?n property:followed_by ?i . ?n property:follows ?j }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q17427> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P488> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q99829>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q17427 p:P488 ?s . ?s ps:P488 wd:Q99829 . ?s pq:P156 ?value1 . ?s pq:P155 ?value2 }