Input: Late Middle Ages
After the failed union of Sweden and Norway of 1319–1365, the pan-Scandinavian Kalmar Union was instituted in 1397. The Swedes were reluctant members of the Danish-dominated union from the start. In an attempt to subdue the Swedes, King Christian II of Denmark had large numbers of the Swedish aristocracy killed in the Stockholm Bloodbath of 1520. Yet this measure only led to further hostilities, and Sweden broke away for good in 1523. Norway, on the other hand, became an inferior party of the union and remained united with Denmark until 1814.

Denmark and Norway remained in the Kalmar Union until what year?
Output: 1814

Input: Treaty
The language of treaties, like that of any law or contract, must be interpreted when the wording does not seem clear or it is not immediately apparent how it should be applied in a perhaps unforeseen circumstance. The Vienna Convention states that treaties are to be interpreted "in good faith" according to the "ordinary meaning given to the terms of the treaty in their context and in the light of its object and purpose." International legal experts also often invoke the 'principle of maximum effectiveness,' which interprets treaty language as having the fullest force and effect possible to establish obligations between the parties.

What principle is often invoked by legal experts when interpreting the language of treaties?
Output: principle of maximum effectiveness

Input: Josip Broz Tito
In the immediate aftermath of World War II, there occurred several armed incidents between Yugoslavia and the Western Allies. Following the war, Yugoslavia acquired the Italian territory of Istria as well as the cities of Zadar and Rijeka. Yugoslav leadership was looking to incorporate Trieste into the country as well, which was opposed by the Western Allies. This led to several armed incidents, notably attacks by Yugoslav fighter planes on US transport aircraft, causing bitter criticism from the west. From 1945 to 1948, at least four US aircraft were shot down.[better source needed] Stalin was opposed to these provocations, as he felt the USSR unready to face the West in open war so soon after the losses of World War II and at the time when US had operational nuclear weapons whereas USSR had yet to conduct its first test. In addition, Tito was openly supportive of the Communist side in the Greek Civil War, while Stalin kept his distance, having agreed with Churchill not to pursue Soviet interests there, although he did support the Greek communist struggle politically, as demonstrated in several assemblies of the UN Security Council. In 1948, motivated by the desire to create a strong independent economy, Tito modeled his economic development plan independently from Moscow, which resulted in a diplomatic escalation followed by a bitter exchange of letters in which Tito affirmed that

What Italian territory did Yugoslavia acquire after the war?
Output: Istria

Input: Southeast Asia
The Indonesian Archipelago is split by the Wallace Line. This line runs along what is now known to be a tectonic plate boundary, and separates Asian (Western) species from Australasian (Eastern) species. The islands between Java/Borneo and Papua form a mixed zone, where both types occur, known as Wallacea. As the pace of development accelerates and populations continue to expand in Southeast Asia, concern has increased regarding the impact of human activity on the region's environment. A significant portion of Southeast Asia, however, has not changed greatly and remains an unaltered home to wildlife. The nations of the region, with only few exceptions, have become aware of the need to maintain forest cover not only to prevent soil erosion but to preserve the diversity of flora and fauna. Indonesia, for example, has created an extensive system of national parks and preserves for this purpose. Even so, such species as the Javan rhinoceros face extinction, with only a handful of the animals remaining in western Java.

Which species in Java face extinction?
Output:
Javan rhinoceros