Question: What happened when the ruler of the country that took over Kazakhstan was removed from power during first world war?

full_context: Document 1: Allied leaders of World War I: Nicholas II -- last Czar of Russia, titular King of Poland, and Grand Duke of Finland. His rule ended with the Russian Revolution. Nicholas was killed on 17 July 1918.
Document 2: Russian Revolution: The February Revolution (March 1917) was a revolution focused around Petrograd (now Saint Petersburg), the capital of Russia at that time. In the chaos, members of the Imperial parliament (the Duma) assumed control of the country, forming the Russian Provisional Government which was heavily dominated by the interests of large capitalists and the noble aristocracy. The army leadership felt they did not have the means to suppress the revolution, resulting in Nicholas's abdication. The soviets, which were dominated by soldiers and the urban industrial working class, initially permitted the Provisional Government to rule, but insisted on a prerogative to influence the government and control various militias. The February Revolution took place in the context of heavy military setbacks during the First World War (1914 -- 18), which left much of the Russian Army in a state of mutiny.
Document 3: Grand Duke Paul Alexandrovich of Russia: Grand Duke Paul Alexandrovich of Russia (; 3 October 1860 – 28 January 1919) was the sixth son and youngest child of Emperor Alexander II of Russia by his first wife, Empress Maria Alexandrovna. He was a brother of Emperor Alexander III and uncle of Nicholas II, Russia's last monarch.
Document 4: Crimean War: Russia, as a member of the Holy Alliance, had operated as the "police of Europe", maintaining the balance of power that had been established in the Treaty of Vienna in 1815. Russia had assisted Austria's efforts in suppressing the Hungarian Revolution of 1848, and expected gratitude; it wanted a free hand in settling its problems with the Ottoman Empire — the "sick man of Europe". The United Kingdom could not tolerate Russian dominance of Ottoman affairs, as that would challenge the British domination of the eastern Mediterranean.
Document 5: Crimean War: The Crimean War marked the ascendancy of France to the position of pre-eminent power on the Continent,:411 the continued decline of the Ottoman Empire, and the beginning of a decline for Tsarist Russia. As Fuller notes, "Russia had been beaten on the Crimean peninsula, and the military feared that it would inevitably be beaten again unless steps were taken to surmount its military weakness." The Crimean War marks the demise of the Concert of Europe, the balance of power that had dominated Europe since the Congress of Vienna in 1815, and which had included France, Russia, Austria and the United Kingdom.
Document 6: British Empire: During the 19th century, Britain and the Russian Empire vied to fill the power vacuums that had been left by the declining Ottoman Empire, Qajar dynasty and Qing Dynasty. This rivalry in Eurasia came to be known as the "Great Game". As far as Britain was concerned, defeats inflicted by Russia on Persia and Turkey demonstrated its imperial ambitions and capabilities and stoked fears in Britain of an overland invasion of India. In 1839, Britain moved to pre-empt this by invading Afghanistan, but the First Anglo-Afghan War was a disaster for Britain.
Document 7: List of Russian monarchs: The Time of Troubles came to a close with the election of Michael Romanov as Tsar in 1613. Michael officially reigned as Tsar, though his father, the Patriarch Philaret (died 1633) initially held the real power. However, Michael's descendents would rule Russia, first as Tsars and later as Emperors, until the Russian Revolution of 1917. Peter the Great (reigned 1682 - 1725), a grandson of Michael Romanov, reorganized the Russian state along more Western lines, establishing the Russian Empire in 1721.
Document 8: British Empire: When Russia invaded the Turkish Balkans in 1853, fears of Russian dominance in the Mediterranean and Middle East led Britain and France to invade the Crimean Peninsula to destroy Russian naval capabilities. The ensuing Crimean War (1854–56), which involved new techniques of modern warfare, and was the only global war fought between Britain and another imperial power during the Pax Britannica, was a resounding defeat for Russia. The situation remained unresolved in Central Asia for two more decades, with Britain annexing Baluchistan in 1876 and Russia annexing Kirghizia, Kazakhstan, and Turkmenistan. For a while it appeared that another war would be inevitable, but the two countries reached an agreement on their respective spheres of influence in the region in 1878 and on all outstanding matters in 1907 with the signing of the Anglo-Russian Entente. The destruction of the Russian Navy by the Japanese at the Battle of Port Arthur during the Russo-Japanese War of 1904–05 also limited its threat to the British.
Document 9: History of Russia: Alexander was succeeded by his son Nicholas II (1894–1917). The Industrial Revolution, which began to exert a significant influence in Russia, was meanwhile creating forces that would finally overthrow the tsar. Politically, these opposition forces organized into three competing parties: The liberal elements among the industrial capitalists and nobility, who believed in peaceful social reform and a constitutional monarchy, founded the Constitutional Democratic party or Kadets in 1905. Followers of the Narodnik tradition established the Socialist-Revolutionary Party or Esers in 1901, advocating the distribution of land among those who actually worked it—the peasants. A third radical group founded the Russian Social Democratic Labour Party or RSDLP in 1898; this party was the primary exponent of Marxism in Russia. Gathering their support from the radical intellectuals and the urban working class, they advocated complete social, economic and political revolution.
Document 10: Crimean War: Russia feared losing Russian America without compensation in some future conflict, especially to the British. While Alaska attracted little interest at the time, the population of nearby British Columbia started to increase rapidly a few years after hostilities ended. Therefore, the Russian emperor, Alexander II, decided to sell Alaska. In 1859 the Russians offered to sell the territory to the United States, hoping that its presence in the region would offset the plans of Russia's greatest regional rival, the United Kingdom.
Document 11: Grand Duchess Xenia Alexandrovna of Russia: Grand Duchess Xenia Alexandrovna of Russia (; – 20 April 1960) was the elder daughter and fourth child of Tsar Alexander III of Russia and Empress Maria Feodorovna of Russia (née Princess Dagmar of Denmark) and the sister of Emperor Nicholas II. She married a cousin, Grand Duke Alexander Mikhailovich of Russia, with whom she had seven children. She was the mother-in-law of Felix Yusupov and a cousin of Grand Duke Dmitri Pavlovich of Russia who, together, killed Grigori Rasputin, holy healer to her nephew, the haemophiliac Tsarevich Alexei Nikolaevich of Russia. During her brother's reign she recorded in her diary and letters increasing concern about his rule. After the fall of the monarchy in February 1917, she fled Russia, eventually settling in the United Kingdom. Her grandson Prince Andrew Andreevich has been a head of the Romanov Family since December 2016.
Document 12: Modern history: The Russian Civil War was a multi-party war that occurred within the former Russian Empire after the Russian provisional government collapsed and the Soviets under the domination of the Bolshevik party assumed power, first in Petrograd (St. Petersburg) and then in other places. In the wake of the October Revolution, the old Russian Imperial Army had been demobilized; the volunteer-based Red Guard was the Bolsheviks' main military force, augmented by an armed military component of the Cheka, the Bolshevik state security apparatus. There was an instituted mandatory conscription of the rural peasantry into the Red Army. Opposition of rural Russians to Red Army conscription units was overcome by taking hostages and shooting them when necessary in order to force compliance. Former Tsarist officers were utilized as "military specialists" (voenspetsy), taking their families hostage in order to ensure loyalty. At the start of the war, three-fourths of the Red Army officer corps was composed of former Tsarist officers. By its end, 83% of all Red Army divisional and corps commanders were ex-Tsarist soldiers.
Document 13: October Revolution: It followed and capitalized on the February Revolution of the same year, which overthrew the Tsarist autocracy and resulted in a provisional government after a transfer of power proclaimed by Grand Duke Michael, brother of Tsar Nicolas II, who declined to take power after the Tsar stepped down. During this time, urban workers began to organize into councils (soviets) wherein revolutionaries criticized the provisional government and its actions. After the Congress of Soviets, now the governing body, had its second session, it elected members of the Bolsheviks and other leftist groups such as the Left Socialist Revolutionaries to important positions within the new state of affairs. This immediately initiated the establishment of the Russian Socialist Federative Soviet Republic, the world's first self - proclaimed socialist state. On 17 July 1918, the Tsar and his family were executed.
Document 14: Russian Revolution: The Russian Revolution was a pair of revolutions in Russia in 1917 which dismantled the Tsarist autocracy and led to the rise of the Soviet Union. The Russian Empire collapsed with the abdication of Emperor Nicholas II and the old regime was replaced by a provisional government during the first revolution of February 1917 (March in the Gregorian calendar; the older Julian calendar was in use in Russia at the time). Alongside it arose grassroots community assemblies (called 'soviets') which contended for authority. In the second revolution that October, the Provisional Government was toppled and all power was given to the soviets.
Document 15: Modern history: The Russian Revolution is the series of revolutions in Russia in 1917, which destroyed the Tsarist autocracy and led to the creation of the Soviet Union. Following the abdication of Nicholas II of Russia, the Russian Provisional Government was established. In October 1917, a red faction revolution occurred in which the Red Guard, armed groups of workers and deserting soldiers directed by the Bolshevik Party, seized control of Saint Petersburg (then known as Petrograd) and began an immediate armed takeover of cities and villages throughout the former Russian Empire.
ground_truth: the Russian Provisional Government was established.
sub_queries: Which country took over Kazakhstan? Answer: Russia
name the ruler of Russia during first world war Answer: Nicholas II
What happened when Nicholas II was removed from power? Answer: the Russian Provisional Government was established.