Input: Qing dynasty
Historians have judged the Qing dynasty's vulnerability and weakness to foreign imperialism in the 19th century to be based mainly on its maritime naval weakness while it achieved military success against westerners on land, the historian Edward L. Dreyer said that "China’s nineteenth-century humiliations were strongly related to her weakness and failure at sea. At the start of the Opium War, China had no unified navy and no sense of how vulnerable she was to attack from the sea; British forces sailed and steamed wherever they wanted to go......In the Arrow War (1856–60), the Chinese had no way to prevent the Anglo-French expedition of 1860 from sailing into the Gulf of Zhili and landing as near as possible to Beijing. Meanwhile, new but not exactly modern Chinese armies suppressed the midcentury rebellions, bluffed Russia into a peaceful settlement of disputed frontiers in Central Asia, and defeated the French forces on land in the Sino-French War (1884–85). But the defeat of the fleet, and the resulting threat to steamship traffic to Taiwan, forced China to conclude peace on unfavorable terms."

What was the main problem the Qing had in preventing invasion from Europe?
Output: naval weakness

Input: Ottoman Empire
Part of the Ottoman territories in the Balkans (such as Thessaloniki, Macedonia and Kosovo) were temporarily lost after 1402 but were later recovered by Murad II between the 1430s and 1450s. On 10 November 1444, Murad II defeated the Hungarian, Polish, and Wallachian armies under Władysław III of Poland (also King of Hungary) and John Hunyadi at the Battle of Varna, the final battle of the Crusade of Varna, although Albanians under Skanderbeg continued to resist. Four years later, John Hunyadi prepared another army (of Hungarian and Wallachian forces) to attack the Turks but was again defeated by Murad II at the Second Battle of Kosovo in 1448.

Władysław III of Poland was also the king of what?
Output: Hungary

Input: Han dynasty
Each successive rank gave its holder greater pensions and legal privileges. The highest rank, of full marquess, came with a state pension and a territorial fiefdom. Holders of the rank immediately below, that of ordinary marquess, received a pension, but had no territorial rule. Officials who served in government belonged to the wider commoner social class and were ranked just below nobles in social prestige. The highest government officials could be enfeoffed as marquesses. By the Eastern Han period, local elites of unattached scholars, teachers, students, and government officials began to identify themselves as members of a larger, nationwide gentry class with shared values and a commitment to mainstream scholarship. When the government became noticeably corrupt in mid-to-late Eastern Han, many gentrymen even considered the cultivation of morally grounded personal relationships more important than serving in public office.

What rank is below that of full marquess?
Output: ordinary marquess

Input: United States Army
The Pentagon bought 25,000 MRAP vehicles since 2007 in 25 variants through rapid acquisition with no long-term plans for the platforms. The Army plans to divest 7,456 vehicles and retain 8,585. Of the total number of vehicles the Army will keep, 5,036 will be put in storage, 1,073 will be used for training, and the remainder will be spread across the active force. The Oshkosh M-ATV will be kept the most at 5,681 vehicles, as it is smaller and lighter than other MRAPs for off-road mobility. The other most retained vehicle will be the Navistar MaxxPro Dash with 2,633 vehicles, plus 301 Maxxpro ambulances. Thousands of other MRAPs like the Cougar, BAE Caiman, and larger MaxxPros will be disposed of.

What type of ambulance will the Army have 301 of?
Output:
Maxxpro