Input: The Jurchens were a Tungusic-speaking group of semi-agrarian tribes inhabiting areas of northeast Asia that are now part of Northeast China. Many of the Jurchen tribes were vassals of the Liao dynasty , an empire ruled by the nomadic Khitans that included most of modern Mongolia, a portion of North China, Northeast China, northern Korea, and parts of the Russian Far East. To the south of the Liao lay the Han Chinese Song Empire . The Song and Liao were at peace, but since a military defeat to the Liao in 1005, the Song paid its northern neighbor an annual indemnity of 200,000 bolts of silk and 100,000 ounces of silver. In 1114, the chieftain Wanyan Aguda  united the disparate Jurchen tribes and led a revolt against the Liao. In 1115 he named himself emperor of the Jin "golden" dynasty . Informed by a Liao defector of the success of the Jurchen uprising, the Song emperor Huizong  and his highest military commander the eunuch Tong Guan saw the Liao weakness as an opportunity to recover the Sixteen Prefectures, a line of fortified cities and passes that the Liao had annexed from the Shatuo Turk Later Jin in 938, and that the Song had repeatedly but unsuccessfully tried to reconquer. The Song thus sought an alliance with the Jin against their common enemy the Liao.

Question: Which happened first, a military defeat to the Liao or the chieftain Wanyan Aguda united the disparate Jurchen tribes


Input: Soviet troops  approached the Lithuanian territory on December 12, 1918. About 5,000 of them were Lithuanians. Three divisions were employed: Pskov division , International Division , and 17th Division . The divisions did not have a common military commander. Later more units were sent from Russia. The soviets also recruited partisan groups behind the front lines. Soviet soldiers were poorly supplied and had to support themselves by requisitioning food, horses, and clothes from local residents. Lithuania could not offer serious resistance as at the time its army consisted only of about 3,000 untrained volunteers. Only local partisans, armed with weapons acquired from retreating Germans, offered brief resistance. Red Army captured one town after another: Zarasai and Švenčionys , Utena , Rokiškis , Vilnius , Ukmergė and Panevėžys , Šiauliai , Telšiai . That accounted for about ⅔ of the Lithuanian territory. The front somewhat stabilized when Soviet forces were stopped near the Venta River by Latvian and German units . Also Germans slowed down withdrawal of their troops after the Spartacist uprising was subdued on January 12. Southern Lithuania was a little better protected as Germans retreated from Ukraine through Hrodna. To prevent fights between retreating Germans and the Red Army, the Soviets and Germans signed a treaty on January 18. The treaty drew a temporary demarcation line that went through Daugai, Stakliškės, and 10 kilometres  east of Kaišiadorys-Jonava-Kėdainiai railway. That barred Bolshevik forces from directly attacking Kaunas, Lithuania's second-largest city. The Red Army would need to encircle Kaunas and attack through Alytus or Kėdainiai. The operation to take Kaunas began on February 7.

Question: What happened first, Germans signed a treaty or the operation to take Kaunas began?


Input: In the county, the population was spread out with 21.7% under the age of 18,  8.5% from 18 to 24, 26.9% from 25 to 44, 27.7% from 45 to 64, and 15.0% who were 65 years of age or older. The median age was 40 years. For every 100 females, there were 94.4 males. For every 100 females age 18 and over, there were 98.7 males.

Question: How many more females per 100 than males with median age of 40 years old in the country?


Input: The United States occupation of Nicaragua from 1912 to 1933 was part of the Banana Wars, when the US military forcefully intervened in various Latin American countries from 1898 to 1934. The formal occupation began in 1912, even though there were various other assaults by the U.S. in Nicaragua throughout this period. American military interventions in Nicaragua were designed to stop any other nation except the United States of America from building a Nicaraguan Canal. Nicaragua assumed a quasi-protectorate status under the 1916 Bryan-Chamorro Treaty. But with the onset of the Great Depression and Augusto C. Sandino's Nicaraguan guerrilla troops fighting back against U.S. troops, it became too costly for the U.S. government and a withdrawal was ordered in 1933.

Question:
Which was a shorter time span, the United States occupation of Nicaragua or the US military forcefully intervening in various Latin American countries?