Question: What position was held by the person who defeated the last song emperor of the country where The Cultural Revolution took place?

<P0-S0> the united states presidential election of 1812, the seventh quadrennial american presidential election, was held from friday, october 30, 1812 to wednesday, december 2, 1812. taking place in the shadow of the war of 1812, incumbent democratic-republican president james madison defeated dewitt clinton, who drew support from dissident democratic-republicans in the north as well as federalists. <P0-S1> it was the first presidential election to be held during a major war involving the united states. <SEP> <P1-S0> The Song dynasty is divided into two distinct periods, Northern and Southern. <P1-S1> During the Northern Song (Chinese: 北宋; 960 -- 1127), the Song capital was in the northern city of Bianjing (now Kaifeng) and the dynasty controlled most of what is now Eastern China. <P1-S2> The Southern Song (Chinese: 南宋; 1127 -- 1279) refers to the period after the Song lost control of its northern half to the Jurchen Jin dynasty in the Jin -- Song Wars. <P1-S3> During this time, the Song court retreated south of the Yangtze and established its capital at Lin'an (now Hangzhou). <P1-S4> Although the Song dynasty had lost control of the traditional ``birthplace of Chinese civilization ''along the Yellow River, the Song economy was still strong, as the Southern Song Empire contained a large population and productive agricultural land. <P1-S5> The Southern Song dynasty considerably bolstered its naval strength to defend its waters and land borders and to conduct maritime missions abroad. <P1-S6> To repel the Jin, and later the Mongols, the Song developed revolutionary new military technology augmented by the use of gunpowder. <P1-S7> In 1234, the Jin dynasty was conquered by the Mongols, who took control of northern China, maintaining uneasy relations with the Southern Song. <P1-S8> Möngke Khan, the fourth Great Khan of the Mongol Empire, died in 1259 while besieging the city of Chongqing. <P1-S9> His younger brother Kublai Khan was proclaimed the new Great Khan, though his claim was only partially recognized by the Mongols in the west. <P1-S10> In 1271, Kublai Khan was proclaimed the Emperor of China. <P1-S11> After two decades of sporadic warfare, Kublai Khan's armies conquered the Song dynasty in 1279. <P1-S12> The Mongol invasion led to a reunification under the Yuan dynasty (1271 -- 1368). <SEP> <P2-S0> Kublai (; ; ) was the fifth Khagan (Great Khan) of the Mongol Empire ("Ikh Mongol Uls"), reigning from 1260 to 1294 (although due to the division of the empire this was a nominal position). <P2-S1> He also founded the Yuan dynasty in China as a conquest dynasty in 1271, and ruled as the first Yuan emperor until his death in 1294. <SEP> <P3-S0> The Cultural Revolution, formally the Great Proletarian Cultural Revolution, was a sociopolitical movement in China from 1966 until 1976. <P3-S1> Launched by Mao Zedong, then Chairman of the Communist Party of China, its stated goal was to preserve Chinese Communism by purging remnants of capitalist and traditional elements from Chinese society, and to re-impose Mao Zedong Thought (known outside China simply as Maoism) as the dominant ideology within the Party. <P3-S2> The Revolution marked Mao's return to a position of power after the failures of his Great Leap Forward. <P3-S3> The movement paralyzed China politically and negatively affected both the economy and society of the country to a significant degree. <P3-S4> An estimated 500,000 to 2,000,000 people were killed.The movement was launched in May 1966, after Mao alleged that bourgeois elements had infiltrated the government and society at large, aiming to restore capitalism. <P3-S5> To eliminate his rivals within the Communist Party of China (CPC), Mao insisted that revisionists be removed through violent class struggle. <P3-S6> China's youth responded to Mao's appeal by forming Red Guard groups around the country. <P3-S7> The movement spread into the military, urban workers, and the Communist Party leadership itself. <P3-S8> It resulted in widespread armed clashes between conservative and radical factions in all walks of life, as a result of Mao's open call for "all-round civil war" against the conservatives in the communist party establishment. <P3-S9> In the top leadership, it led to a mass purge of senior officials, most notably Liu Shaoqi and Deng Xiaoping. <P3-S10> During the same period, Mao's personality cult grew to immense proportions. <SEP> <P4-S0> the newly allied armies captured beijing on june 6. the shunzhi emperor was invested as the "son of heaven" on october 30. the manchus, who had positioned themselves as political heir to the ming emperor by defeating the rebel li zicheng, completed the symbolic transition by holding a formal funeral for the chongzhen emperor. <P4-S1> however the process of conquering the rest of china took another seventeen years of battling ming loyalists, pretenders and rebels. <P4-S2> the last ming pretender, prince gui, sought refuge with the king of burma, but was turned over to a qing expeditionary army commanded by wu sangui, who had him brought back to yunnan province and executed in early 1662.