query: Who was the last ruler of the Tang Dynasty?
passage: Emperor Ai of Tang
Emperor Ai of Tang (27 October 892–26 March 908), also known as Emperor Zhaoxuan (昭宣帝), born Li Zuo, later known as Li Chu (Chinese:李柷; pinyin:Lǐ Chù[6]), was the last emperor of the Tang dynasty of China. He reigned—as but a puppet ruler—from 904 to 907. Emperor Ai was the son of Emperor Zhaozong.
passage: Wang Xu
Wang Xu (王緒) (d. 886) was a warlord the late Chinese dynasty Tang Dynasty, who controlled Guang Prefecture (光州, in modern Xinyang, Henan) as its prefect from 881 to 885. Subsequently, faced with material demands from Qin Zongquan, who had claimed imperial title, which Wang was unable to meet, Wang Xu forced the people and the soldiers of Guang Prefecture to abandon it and follow him in heading south to modern Fujian. Wang Xu was then overthrown by his subordinate Wang Chao, who eventually took over Fujian and whose family established the Five Dynasties and Ten Kingdoms period state Min.