Input: Article: In 1374 King Louis of Hungary approved the Privilege of Koszyce (Polish: "przywilej koszycki" or "ugoda koszycka") in Košice in order to guarantee the Polish throne for his daughter Jadwiga. He broadened the definition of who was a member of the nobility and exempted the entire class from all but one tax (łanowy, which was limited to 2 grosze from łan (an old measure of land size)). In addition, the King's right to raise taxes was abolished; no new taxes could be raised without the agreement of the nobility. Henceforth, also, district offices (Polish: "urzędy ziemskie") were reserved exclusively for local nobility, as the Privilege of Koszyce forbade the king to grant official posts and major Polish castles to foreign knights. Finally, this privilege obliged the King to pay indemnities to nobles injured or taken captive during a war outside Polish borders.

Now answer this question: When did King Louis of Hungary approve the privilege of Koszyce?

Output: 1374

Input: Article: The second major event of the early reign of Abd al-Malik was the construction of the Dome of the Rock in Jerusalem. Although the chronology remains somewhat uncertain, the building seems to have been completed in 692, which means that it was under construction during the conflict with Ibn al-Zubayr. This had led some historians, both medieval and modern, to suggest that the Dome of the Rock was built as a destination for pilgrimage to rival the Kaaba, which was under the control of Ibn al-Zubayr.

Now answer this question: In what year was the Dome of the Rock finished?

Output: 692

Input: Article: The history of the Ottoman Empire during World War I began with the Ottoman engagement in the Middle Eastern theatre. There were several important Ottoman victories in the early years of the war, such as the Battle of Gallipoli and the Siege of Kut. The Arab Revolt which began in 1916 turned the tide against the Ottomans on the Middle Eastern front, where they initially seemed to have the upper hand during the first two years of the war. The Armistice of Mudros was signed on 30 October 1918, and set the partition of the Ottoman Empire under the terms of the Treaty of Sèvres. This treaty, as designed in the conference of London, allowed the Sultan to retain his position and title. The occupation of Constantinople and İzmir led to the establishment of a Turkish national movement, which won the Turkish War of Independence (1919–22) under the leadership of Mustafa Kemal (later given the surname "Atatürk"). The sultanate was abolished on 1 November 1922, and the last sultan, Mehmed VI (reigned 1918–22), left the country on 17 November 1922. The caliphate was abolished on 3 March 1924.

Now answer this question: The Battle of Gallipoli and the Siege of Kut resulted in what?

Output:
Ottoman victories