What is {predecessor} of {position held by head of government} of {Tainan} ?
Who preceded the position held by Tainan's head of government?
who is predecessor of position held by head of government of Tainan ?
SELECT ?u WHERE { ?b property:replaces ?u . resource:Tainan property:office_held_by_head_of_government ?b }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q140631> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1313>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1365> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q140631 wdt:P1313 ?X . ?X wdt:P1365 ?answer}
Magistrate of Tainan County Mayor of Tainan