Question: When did the country of Okkupert leave the Kalmar Union?

full_context: Document 1: Russia in the European energy sector: The Russian Federation supplies a significant volume of fossil fuels and is the largest exporter of oil and natural gas to the European Union. In 2007, the European Union imported from Russia 185 million tonnes of crude oil, which accounted for 32.6% of total oil import, and 100.7 million tonnes of oil equivalent of natural gas, which accounted 38.7% of total gas import.
Document 2: 1973 oil crisis: In 2004, declassified documents revealed that the U.S. was so distraught by the rise in oil prices and being challenged by under-developed countries that they briefly considered military action to forcibly seize Middle Eastern oilfields in late 1973. Although no explicit plan was mentioned, a conversation between U.S. Secretary of Defense James Schlesinger and British Ambassador to the United States Lord Cromer revealed Schlesinger had told him that "it was no longer obvious to him that the U.S. could not use force." British Prime Minister Edward Heath was so worried by this prospect that he ordered a British intelligence estimate of U.S. intentions, which concluded America "might consider it could not tolerate a situation in which the U.S. and its allies were at the mercy of a small group of unreasonable countries," and that they would prefer a rapid operation to seize oilfields in Saudi Arabia and Kuwait, and possibly Abu Dhabi in military action was decided upon. Although the Soviet response to such an act would likely not involve force, intelligence warned "the American occupation would need to last 10 years as the West developed alternative energy sources, and would result in the ‘total alienation’ of the Arabs and much of the rest of the Third World."
Document 3: Bogusław Radziwiłł: Together with his cousin Janusz Radziwiłł in 1654 during The Deluge, or Swedish invasion of Poland, Bogusław Radziwiłł began negotiations with King Charles X Gustav of Sweden aimed at breaking the Commonwealth and the Polish–Lithuanian union. They signed a treaty according to which the Swedish–Lithuanian union was founded and the Radziwiłłs were to rule over two duchies carved up from the lands of the Grand Duchy of Lithuania (this was also confirmed in another treaty, the treaty of Radnot).
Document 4: Egypt: Egypt has a developed energy market based on coal, oil, natural gas, and hydro power. Substantial coal deposits in the northeast Sinai are mined at the rate of about 600,000 tonnes (590,000 long tons; 660,000 short tons) per year. Oil and gas are produced in the western desert regions, the Gulf of Suez, and the Nile Delta. Egypt has huge reserves of gas, estimated at 2,180 cubic kilometres (520 cu mi), and LNG up to 2012 exported to many countries. In 2013, the Egyptian General Petroleum Co (EGPC) said the country will cut exports of natural gas and tell major industries to slow output this summer to avoid an energy crisis and stave off political unrest, Reuters has reported. Egypt is counting on top liquid natural gas (LNG) exporter Qatar to obtain additional gas volumes in summer, while encouraging factories to plan their annual maintenance for those months of peak demand, said EGPC chairman, Tarek El Barkatawy. Egypt produces its own energy, but has been a net oil importer since 2008 and is rapidly becoming a net importer of natural gas.
Document 5: Late Middle Ages: Around 1300, centuries of prosperity and growth in Europe came to a halt. A series of famines and plagues, including the Great Famine of 1315–1317 and the Black Death, reduced the population to around half of what it was before the calamities. Along with depopulation came social unrest and endemic warfare. France and England experienced serious peasant uprisings, such as the Jacquerie and the Peasants' Revolt, as well as over a century of intermittent conflict in the Hundred Years' War. To add to the many problems of the period, the unity of the Catholic Church was shattered by the Western Schism. Collectively these events are sometimes called the Crisis of the Late Middle Ages.
Document 6: Kalmar: From the thirteenth to the seventeenth centuries, Kalmar was one of Sweden's most important cities. Between 1602 and 1913 it was the episcopal see of Kalmar Diocese, with a bishop, and the Kalmar Cathedral from 1702 is still a fine example of classicistic architecture. It became a fortified city, with the Kalmar Castle as the center. After the Treaty of Roskilde in 1658, Kalmar's importance diminished, until the industry sector was initiated in the 19th century. The city is home to parts of Linnaeus University.
Document 7: Alps: Much of the medieval period was a time of power struggles between competing dynasties such as the House of Savoy, the Visconti in northern Italy and the House of Habsburg in Austria and Slovenia. In 1291 to protect themselves from incursions by the Habsburgs, four cantons in the middle of Switzerland drew up a charter that is considered to be a declaration of independence from neighboring kingdoms. After a series of battles fought in the 13th, 14th and 15th centuries, more cantons joined the confederacy and by the 16th century Switzerland was well-established as a separate state.
Document 8: Occupied: The series premiered in Norway on TV2 on 5 October 2015. The series premiered in the United Kingdom and Ireland on 13 January 2016 on Sky Arts in HD. The series has been added to the Netflix streaming service in multiple countries as of 20 January 2016. The series premiered on Pivot TV in the United States on 5 May 2016. The series premiered on public television station TVOntario in Canada on 11 September 2016.
Document 9: List of countries by oil production: The top three producers have in recent history been (alphabetically) Russia, Saudi Arabia, and the United States. Each of these countries experienced major production declines at different times in the past, but since 2014 all three have been producing near their peak rates of 9 to 11 million barrels per day. Saudi Arabia and Russia also top the list of oil exporting countries, while Russia is not a member of OPEC. The monthly U.S. oil production reached 10.07 million b / d in November 2017, the highest monthly level of crude oil production in U.S. history. In early 2018, the U.S. government forecast the country will become a net oil and gas exporter by 2022, the first time since 1953.
Document 10: Middle Ages: In modern-day Germany, the Holy Roman Empire continued to rule, but the elective nature of the imperial crown meant there was no enduring dynasty around which a strong state could form. Further east, the kingdoms of Poland, Hungary, and Bohemia grew powerful. In Iberia, the Christian kingdoms continued to gain land from the Muslim kingdoms of the peninsula; Portugal concentrated on expanding overseas during the 15th century, while the other kingdoms were riven by difficulties over royal succession and other concerns. After losing the Hundred Years' War, England went on to suffer a long civil war known as the Wars of the Roses, which lasted into the 1490s and only ended when Henry Tudor (r. 1485–1509 as Henry VII) became king and consolidated power with his victory over Richard III (r. 1483–85) at Bosworth in 1485. In Scandinavia, Margaret I of Denmark (r. in Denmark 1387–1412) consolidated Norway, Denmark, and Sweden in the Union of Kalmar, which continued until 1523. The major power around the Baltic Sea was the Hanseatic League, a commercial confederation of city states that traded from Western Europe to Russia. Scotland emerged from English domination under Robert the Bruce (r. 1306–29), who secured papal recognition of his kingship in 1328.
Document 11: 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.
Document 12: Occupied: The series depicts a fictional near future in which Russia, with support from the European Union, occupies Norway to restore its oil and gas production, in response to a Europe-wide energy crisis. Due to catastrophic environmental events, Norway's Prime Minister has stopped the country's oil and gas production.
Document 13: Battle of Bogesund: The Battle of Bogesund was an important conflict in the campaign of Christian II to gain power over Sweden. In 1520, Christian's army of mercenaries had landed in Sweden, seeking to consolidate Christian's powers over Sweden within the Kalmar Union and to unseat the rebellious Swedish viceroy Sten Sture the Younger. On the ice of lake Åsunden near Bogesund, Christian's army led by Otte Krumpen was intercepted by a force led by Sten Sture.
Document 14: The Kingdom at the End of the Road: The book starts with Arn coming home to the abbey in which he grew up and reuniting with his kinsmen. Arn, now an experienced knight, has great plans for Sweden. To build a superior and centralized fighting force to create a stable peace within the three countries that will one day be known as Sweden. He is also forced to repel two invasions by the Danish-supported pretender to the throne, Sverker Karlsson.
Document 15: 1973 oil crisis: Despite being relatively unaffected by the embargo, the UK nonetheless faced an oil crisis of its own - a series of strikes by coal miners and railroad workers over the winter of 1973–74 became a major factor in the change of government. Heath asked the British to heat only one room in their houses over the winter. The UK, Germany, Italy, Switzerland and Norway banned flying, driving and boating on Sundays. Sweden rationed gasoline and heating oil. The Netherlands imposed prison sentences for those who used more than their ration of electricity.
ground_truth: 1814
sub_queries: Which was the country for Okkupert? Answer: Norway
Denmark and Norway remained in the Kalmar Union until what year? Answer: 1814