P: The Mongol Empire conquered the Qara Khitai in the years 1216-1218 AD. Prior to the invasion, war with the Khwarazmian dynasty and the usurpation of power by the Naiman prince Kuchlug had weakened the Qara Khitai. When Kuchlug besieged Almaliq, a city belonging to the Karluks, vassals of the Mongol Empire, Genghis Khan dispatched a force under command of Jebe to pursue Kuchlug. After his force of 30,000 was defeated by Jebe at the Khitan capital Balasagun, Kuchlug faced rebellions over his unpopular rule, forcing him to flee to modern Afghanistan, where he was captured by hunters in 1218. The hunters turned Kuchlug over to the Mongols, who beheaded him. Upon defeating the Qara Khitai, the Mongols now had a direct border with the Khwarazmian Empire, which they would soon invade in 1219.
Answer this: How many years did it take the Mongol Empire to conquer the Qara Khitai?

A: 2


P: Philip IV of France became King in 1285, and was determined to strengthen the French monarchy at any cost. The County of Flanders had been formally part of the French Kingdom since the Treaty of Verdun in 843, but had always de facto been largely, if not fully, independent from the French crown. Flanders had some of the richest cities of that time, like Bruges, Ghent, Ypres, Lille and Douai. These cities tried to keep their independence from the Count of Flanders and from the rural aristocracy. But the cities were themselves divided between the rich patricians and the urban tradesmen, united in guilds. In 1288, Philip IV of France used complaints over taxes to tighten his control over Flanders. Tension built between Guy of Dampierre, Count of Flanders and the King. In 1294, Guy turned for help to King Edward I of England, arranging a marriage between his daughter Philippa and Edward, Prince of Wales. However, Philip imprisoned Guy and two of his sons, forced him to call off the marriage, and imprisoned Philippa in Paris until her death in 1306. Guy was summoned before the king again in 1296, and the principal cities of Flanders were taken under royal protection, until Guy paid an indemnity and surrendered his territories, to hold them at the grace of the King. After these indignities, in 1297 Guy attempted to revenge himself on Philip by an alliance with Edward I of England, now at war with France. Philip responded by declaring Flanders annexed to the royal domain and sending a French army under Robert II of Artois to conquer Flanders.
Answer this: How many years were inbetween Philip becoming king and him tightening his control over Flanders?

A: 3


P: Zelaya resigned on December 14, 1909, and his hand-picked successor, Jose Madriz, was elected by unanimous vote of the liberal Nicaraguan national assembly on December 20, 1909. U.S. Secretary of State Philander C. Knox admonished that the United States would not resume diplomatic relations with Nicaragua until Madriz demonstrated that his was a "responsible government ... prepared to make reparations for the wrongs" done to American citizens. His request for asylum granted by Mexico, Zelaya was escorted by armed guard to the Mexican gunboat General Guerrero and departed Corinto for Salina Cruz, Mexico, on the night of December 23, with Albany standing by but taking no action. As the flagship of the Nicaraguan Expeditionary Squadron, under Admiral William W. Kimball, Albany spent the next five months in Central America, mostly at Corinto, maintaining U.S. neutrality in the ongoing rebellion, sometimes under criticism by the U.S. press and business interests that were displeased by Kimball's "friendly" attitude toward the liberal Madriz administration. By mid-March 1909, the insurgency led by Estrada and Chamorro was seemingly collapsed and with the apparent and unexpected strength of Madriz, the U.S. Nicaraguan Expeditionary Squadron completed its withdrawal from Nicaraguan waters. On May 27, 1910, U.S. Marine Corps Major Smedley Butler arrived on the coast of Nicaragua with 250 Marines, for the purpose of providing security in Bluefields. United States Secretary of State Philander C. Knox condemned Zelaya's actions, favoring Estrada. Zelaya succumbed to U.S. political pressure and fled the country, leaving José Madriz as his successor. Madriz in turn had to face an advance by the reinvigorated eastern rebel forces, which ultimately led to his resignation. In August 1910, Juan Estrada became president of Nicaragua with the official recognition of the United States.
Answer this: How many months after Madriz was elected president did Juan Estrada become president of Nicaragua?

A:
8