What is {followed by} and {follows} of {{Communist Party of China} has {chairperson} as {Hu Yaobang}}
Who used to be the chairperson of the Communist Party of China right now before Hu Yaobang and who succeeded him?
Who was the chairperson of the Communist Party of China immediately before Hu Yaobang and who succeeded him?
SELECT ?u ?k WHERE { ?g property:follows ?k . resource:Communist_Party_of_China property:chairperson ?g . ?g property:chairperson resource:Hu_Yaobang . ?g property:followed_by ?u }
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/Q99850>. ?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:Q99850 . ?s pq:P156 ?value1 . ?s pq:P155 ?value2 }