Input: In 1665, Bremen refused to pledge allegiance to Charles X Gustav's successor, Charles XI of Sweden. In March, the Swedish riksrad decided to wage war. Thereupon, 12,000 Swedish troops were transferred to the Duchy of Bremen by the end of the year. In January 1666, Carl Gustaf Wrangel departed from Swedish Pomerania to command the Swedish army, which in early 1666 numbered 14,000 troops. By summer, all of the city of Bremen's territory was occupied, except the city itself. The Swedish chancellor of Bremen-Verden, Esaias von Pufendorf, went to the court in Paris to build an alliance with France. The Swedish position was that France had to intervene on the Swedish side, since Bremen was Swedish according to the Peace of Westphalia, of which France was a guarantor. Pufendorf was however told by Hugues de Lionne that France would not hesitate to declare openly that she read the treaty as Bremen being an Imperial city, rather than provoke a new great war with the Holy Roman Empire and the Dutch Republic with an assault Sweden and France could hardly win. Lionne said Sweden would be better off waiting for a situation when the Dutch and the neighboring German principalities were weak, and then take the city of Bremen by surprise.

Question: What happened first, Peace of Westphalia or Bremen's refusal to pledge allegiance to Charles X and XI?

Input: After the Lithuanians were defeated in the Battle of Streva by the Teutonic Knights in 1348, Liubartas lost all territories except for eastern Volhynia with Lutsk to Casimir and his ally Louis I of Hungary . Liubartas' brothers Algirdas and Kestutis organized several expeditions to Poland and Red Ruthenia. Lithuanians allied themselves with Muscovy: Liubartas married an unnamed daughter of Konstantin of Rostov, a relative of Simeon of Moscow, and Algirdas married Uliana of Tver, sister-in-law of Simeon. In spring 1351, Lubartas was taken prisoner by Louis, but was released in summer after a truce was agreed upon with Kestutis. The deal fell through and more military attacks followed in 1352. Another truce, rather favorable to the Lithuanians, was signed in fall 1352: Lubartas received not only Volhynia and Podolia, but also Belz and Chem. However, already in 1353, Liubartas attacked again. Casimir responded by organizing a large campaign against the pagan Lithuanians with a special permission from Pope Innocent VI. After the campaign did not achieve the desired results, Casimir contemplated an alliance with the Lithuanians. In 1366, Casimir, allied with Siemowit III of Masovia and nephews of Liubartas, resumed the war. As Algirdas was involved in conflicts in the east and Kestutis fought with the Teutonic Knights, Liubartas had to defend alone and was defeated. In fall 1366, a treaty was signed: Liubartas retained only eastern Volhynia with Lutsk and became somewhat dependent on Poland . Casimir awarded his allies: Yuri, son of Karijotas, received Chem, his brother Alexander received Volodymyr-Volynskyi, and Yuri, son of Narimantas, continued to rule Belz.

Question: In what years were truces or treaties formed?

Input: At the same time the Baku Commune was involved in heavy fighting with the advancing Caucasian Ottoman Army in and around Ganja. The Ottoman Empire's Enver Pasha began to move forward with the newly established Army of Islam. Major battles occurred in Yevlakh and Agdash. Dunsterville ordered the evacuation of the city on September 14, after six weeks of occupation, and withdrew to Iran; most of the Armenian population escaped with British forces. The Ottoman Army of Islam and its Azeri allies, led by Nuri Pasha, entered Baku on September 15 and slaughtered between 10,000-20,000 Armenians in retaliation for the March massacre of Muslims. The capital of the Azerbaijan was finally moved from Ganja to Baku. However, after the Armistice of Mudros between the United Kingdom and the Ottoman Empire on October 30, Turkish troops were substituted by the Triple Entente. Headed by British Gen. W. Thomson, who had declared himself the military governor of Baku, 1,000 Commonwealth soldiers arrived in Baku on November 17, 1918. By Gen. Thomson's order, martial law was implemented in Baku.

Question: How many places did the major battles occur in?

Input: Following their season sweep over the Raiders, the Broncos went home for a Sunday Night match-up with their AFC West rival, the San Diego Chargers. With first place in the division on the line, both sides would play tough. In the first quarter, the Chargers got the only score of the period as LaDainian Tomlinson scored on a 3-yard TD run on a 98-yard drive. In the second quarter, the Broncos took the lead with RB Mike Bell getting two 3-yard TD runs. In the third quarter, kicker Jason Elam completed a 42-yard field goal, while CB Darrent Williams returned an interception 31 yards for a touchdown. However, things started getting grim as Tomlinson (who historically had difficulty against the Broncos in Denver) exploded with a 3-yard TD run and a 51-yard touchdown reception. In the fourth quarter, Elam would get a 38-yard field goal, but San Diego managed to wrap up the game with QB Philip Rivers completing a 5-yard TD pass to WR Vincent Jackson and Tomlinson getting a 1-yard TD run. With the loss, the Broncos fell to 7-3 and second place in the AFC West. It would later be learned that safety Nick Ferguson had season-ending surgery to repair a torn medial meniscus in his left knee. He injured his knee after a 1st quarter interception.

Question:
Which player scored the last points of the game?