Question: In what year did the city hosting the 2022 Olympics become the capital of China?

full_context: Document 1: 2022 Winter Olympics: The 2022 Winter Olympics, officially known as the XXIV Olympic Winter Games (French: Les XXIV Jeux olympiques d'hiver; Chinese: 第二十四届冬季奥林匹克运动会; pinyin: Dì Èrshísì Jiè Dōngjì Àolínpǐkè Yùndònghuì), and commonly known as Beijing 2022, is an international winter multi-sport event that is scheduled to take place from 4 to 20 February 2022, in Beijing and towns in the neighbouring Hebei province, People's Republic of China.
Document 2: Qing dynasty: First, the Manchus had entered "China proper" because Dorgon responded decisively to Wu Sangui's appeal. Then, after capturing Beijing, instead of sacking the city as the rebels had done, Dorgon insisted, over the protests of other Manchu princes, on making it the dynastic capital and reappointing most Ming officials. Choosing Beijing as the capital had not been a straightforward decision, since no major Chinese dynasty had directly taken over its immediate predecessor's capital. Keeping the Ming capital and bureaucracy intact helped quickly stabilize the regime and sped up the conquest of the rest of the country. However, not all of Dorgon's policies were equally popular nor easily implemented.
Document 3: 2022 Winter Olympics: The 2022 Winter Olympics, officially known as the XXIV Olympic Winter Games (French: Les XXIV Jeux olympiques d'hiver; Chinese: 第二十四届冬季奥林匹克运动会; pinyin: Dì Èrshísì Jiè Dōngjì Àolínpǐkè Yùndònghuì), and commonly known as Beijing 2022, is an international winter multi-sport event that will take place in Beijing and towns in the neighboring Hebei province, People's Republic of China, from 4 to 20 February 2022.
Document 4: 2018 Winter Olympics: The 2018 Winter Olympics, officially known as the XXIII Olympic Winter Games (Korean: 제 23 회동계올림픽, translit. Jeisipsamhoe Donggye Ollimpik) and commonly known as PyeongChang 2018, was an international winter multi-sport event that was held between 9 and 25 February 2018 in Pyeongchang County, Gangwon Province, South Korea, with the opening rounds for certain events held on 8 February 2018, the eve of the opening ceremony.
Document 5: 2022 Winter Olympics: The 2022 Winter Olympics, officially known as the XXIV Olympic Winter Games (French: Les XXIVeme Jeux olympiques d'hiver) (Chinese: 第二十四届冬季奥林匹克运动会; pinyin: Dì Èrshísì Jiè Dōngjì Àolínpǐkè Yùndònghuì), and commonly known as Beijing 2022, is a multi-sport event that will take place in Beijing and towns in the neighboring Hebei province, China from 4 to 20 February 2022. It will be the third consecutive Olympic Games held in East Asia, after Pyeongchang 2018 and Tokyo 2020. Having previously hosted the 2008 Summer Olympics, Beijing will become the first city to ever host both the Summer and the Winter Olympic Games. It will also become the largest city ever to host the Winter Olympics, a distinction currently held by Vancouver which hosted the 2010 Winter Olympics.
Document 6: 2022 Winter Olympics: The 2022 Winter Olympics, officially known as the XXIV Olympic Winter Games (French: Les XXIV Jeux olympiques d'hiver; Chinese: 第二十四届冬季奥林匹克运动会; pinyin: Dì Èrshísì Jiè Dōngjì Àolínpǐkè Yùndònghuì), and commonly known as Beijing 2022, is an international winter multi-sport event that is scheduled to take place from 4 to 20 February 2022, in Beijing and towns in the neighboring Hebei province, People's Republic of China.
Document 7: History of Beijing: The city of Beijing has a long and rich history that dates back over 3,000 years. Prior to the unification of China by the First Emperor in 221 BC, Beijing had been for centuries the capital of the ancient states of Ji and Yan. During the first millennia of imperial rule, Beijing was a provincial city in northern China. Its stature grew in the 10th to the 13th centuries when the nomadic Khitan and forest - dwelling Jurchen peoples from beyond the Great Wall expanded southward and made the city a capital of their dynasties, the Liao and Jin. When Kublai Khan made Dadu the capital of the Mongol - led Yuan dynasty (1279 -- 1368), all of China was ruled from Beijing for the first time. From 1279 onward, with the exception of two interludes from 1368 to 1420 and 1928 to 1949, Beijing would remain as China's capital, serving as the seat of power for the Ming dynasty (1421 -- 1644), the Manchu - led Qing dynasty (1644 -- 1912), the early Republic of China (1912 -- 1928) and now the People's Republic of China (1949 -- present).
Document 8: Former Qin: The Former Qin (351-394) was a state of the Sixteen Kingdoms in eastern Asia, mainly China. Founded by an officer in Shi Le's dynasty, it completed the unification of North China in 376. Its capital was Xi'an up to the death of the ruler Fu Jiān in 385. Despite its name, the Former Qin was much later and less powerful than the Qin Dynasty which had ruled all of China during the 3rd century BC. The adjective "former" is used to distinguish it from the "Later Qin" state (384-417).
Document 9: 2024 Summer Olympics: The 2024 Summer Olympics (French: Jeux olympiques d'été de 2024), officially known as the Games of the XXXIII Olympiad, and commonly known as Paris 2024, is a forthcoming international multi-sport event that is scheduled to take place from 26 July to 11 August 2024 in Paris, France.
Document 10: History of the Forbidden City: The site of the Forbidden City was situated on the Imperial city during the Mongol Yuan Dynasty. After the collapse of the Yuan Dynasty, the Hongwu Emperor of the Ming Dynasty moved the capital from Beijing in the north to Nanjing in the south, and in 1369 ordered that the Yuan palaces be razed. His son Zhu Di was created Prince of Yan with his seat in Beijing. In 1402, Zhu Di usurped the throne and became the Yongle Emperor. He made Beijing a secondary capital of the Ming empire, and construction began in 1406 of what would become the Forbidden City. The Forbidden City's plan was designed by many architects and designers, and then it was examined by the Emperor's Ministry of Work. The chief architects and engineers include Cai Xin, Nguyen An, a Vietnamese eunuch, Kuai Xiang, Lu Xiang and others.
Document 11: Nanjing: Nanjing, one of the nation's most important cities for over a thousand years, is recognized as one of the Four Great Ancient Capitals of China, and had been the world's largest city aggregately for hundreds of years, enjoyed peace and prosperity and beared wars and disasters. Nanjing served as the capital of Eastern Wu, one of the three major states in the Three Kingdoms period (211-280); the Eastern Jin and each of the Southern Dynasties (Liu Song, Southern Qi, Liang and Chen), which successively ruled southern China from 317-589; the Southern Tang, one of the Ten Kingdoms (937-76); the Ming dynasty when, for the first time, all of China was ruled from the city (1368-1421); and the Republic of China (1927–37, 1945–49) prior to its flight to Taiwan during the Chinese Civil War. The city also served as the seat of the rebel Taiping Heavenly Kingdom (1851–64) and the Japanese puppet regime of Wang Jingwei (1940–45) during the Second Sino-Japanese War, and suffered appalling atrocities in both conflicts, including the Nanjing Massacre. It has been serving as the capital city of Jiangsu province after the China was established, and is still the nominal capital of Republic of China that accommodates many of its important heritage sites, including the Presidential Palace and Sun Yat-sen Mausoleum. Nanjing is famous for human historical landscapes, mountains and waters such as Fuzimiao, Ming Palace, Chaotian Palace, Porcelain Tower, Drum Tower, Stone City, City Wall, Qinhuai River, Xuanwu Lake and Purple Mountain. Key cultural facilities include Nanjing Library, Nanjing Museum and Art Museum.
Document 12: Yuan dynasty: Kublai readied the move of the Mongol capital from Karakorum in Mongolia to Khanbaliq in 1264, constructing a new city near the former Jurchen capital Zhongdu, now modern Beijing, in 1266. In 1271, Kublai formally claimed the Mandate of Heaven and declared that 1272 was the first year of the Great Yuan (Chinese: 大元) in the style of a traditional Chinese dynasty. The name of the dynasty originated from the I Ching and describes the "origin of the universe" or a "primal force". Kublai proclaimed Khanbaliq the "Great Capital" or Daidu (Dadu, Chinese: 大都 in Chinese) of the dynasty. The era name was changed to Zhiyuan to herald a new era of Chinese history. The adoption of a dynastic name legitimized Mongol rule by integrating the government into the narrative of traditional Chinese political succession. Khublai evoked his public image as a sage emperor by following the rituals of Confucian propriety and ancestor veneration, while simultaneously retaining his roots as a leader from the steppes.
Document 13: Forbidden City: The Forbidden City is a palace complex in central Beijing, China. The former Chinese imperial palace from the Ming dynasty to the end of the Qing dynasty -- the years 1420 to 1912, it now houses the Palace Museum. The Forbidden City served as the home of emperors and their households as well as the ceremonial and political center of Chinese government for almost 500 years.
Document 14: Nanjing: It is believed that Nanjing was the largest city in the world from 1358 to 1425 with a population of 487,000 in 1400. Nanjing remained the capital of the Ming Empire until 1421, when the third emperor of the Ming dynasty, the Yongle Emperor, relocated the capital to Beijing.
Document 15: 2018 Winter Olympics: The 2018 Winter Olympics, officially known as the XXIII Olympic Winter Games (French: Les XXIIIèmes Jeux olympiques d'hiver; Hangul: 제 23 회동계올림픽; RR: Je - isipsamhoe Donggye Ollimpik) and commonly known as PyeongChang 2018 ((phjʌŋ. tɕhaŋ)), is a major international multi-sport event scheduled to take place from 9 to 25 February 2018 in Pyeongchang County, South Korea.
ground_truth: 1279
sub_queries: where is the olympics going to be in 2022 Answer: Beijing
when was Beijing made the capital of china Answer: 1279