Problem: The French conquest of Morocco took place in 1911 in the aftermath of the Agadir Crisis, when Moroccan forces besieged the French-occupied city of Fez. On 30 March 1912, Sultan Abdelhafid signed the Treaty of Fez, formally ceding Moroccan sovereignty to France, transforming Morocco into a protectorate of France. However, many regions remained in revolt until 1934, when Morocco was declared to be pacified, but in several regions French authority was maintained by cooperation with local chiefs and not military strength. On 17 April 1912, Moroccan infantrymen mutinied in the French garrison in Fez. The Moroccans were unable to take the city and were defeated by a French relief force. In late May 1912, Moroccan forces unsuccessfully attacked the enhanced French garrison at Fez. The last aftermath of the conquest of Morocco occurred in 1933-34, the pacification of Morocco took over 22 years.
Answer this question based on the article: How many years after the French conquest or Morocco took place did the Treaty of Fez get signed?
A: 1

Problem: Ieremia Movilă died in 1606 . In 1607 Stefan Potocki set his brother-in-law , Constantin Movilă , on the Moldavian throne. However, Stefan Potocki was one of the pro-Habsburg magnates and Gabriel Batory, the anti-Habsburg ruler of Transylvania, removed Constantin Movilă in 1611 . The Moldavian throne now fell to Ștefan II Tomșa . A second intervention by Stefan Potocki  in 1612 was a complete failure. Potocki's 7,000 strong army was defeated on 19 July in the Battle of Sasowy Róg  by troops of Tomșa and Khan Temir's Tatars of the Budjak Horde. Stefan Potocki and Constantin Movilă ended their lives in Ottoman captivity in Constantinople. A counter-raid of Tatars and Tomșa on the Commonwealth was stopped by Żółkiewski without a fight, and an agreement between Żółkiewski and Tomșa was signed in October 1612 . Tomșa assured about his friendliness, that he will help to patch up conflict between the Ottoman Empire and the Commonwealth and pledged allegiance to the Polish king. In 1613, when Sigismund signed a de facto anti-Turkish defensive treaty with the Habsburgs, counting on their support for his restoration to the Swedish throne, Poland further moved into the enemy camp from the Ottoman point of view. Hetman Stanisław Żółkiewski, with a show of force, induced Moldavians and Turks to compromise and signed an agreement in 1612 with Ștefan Tomșa at Khotyn.
Answer this question based on the article: How many months after the Battle of Sasowy Róg was an agreement between Żółkiewski and Tomșa signed?
A: 3

Problem: Giorgi-Malakia Abashidze   was a Georgian nobleman and King of Imereti as George VI  from 1702 to 1707. He was a member of the prominent Abashidze family. The youngest son of Prince Paata Abashidze, he was served as a priest until about 1684 when he entered politics after the death of his elder brother Paata Abashidze and began aggressively expanding his patrimonial fiefdom. He dispossessed the Chkheidze family of Shorapani, and the Agiashvili of Tsutskhvati, and took control of the royal domain in Upper Imereti. His daughter, Tamar, was married to the two successive kings of Imereti, Alexander IV and George V. During the reign of the latter monarch, Abashidze effectively ran the government and acted as an all-powerful kingmaker. In 1699, he gave his daughter Anika in marriage to King Simon of Imereti, but they divorced in 1700. In 1701, Abashidze compelled King Mamia of Imereti to abdicate and seized the throne for himself. He managed to establish a degree of stability in Imereti and ceased to pay tribute to the Ottoman Empire, triggering a military response in 1703. He also patronized culture and learning. Deposed after a revolt by the nobles, in favour of the rightful Bagrationi king George VII, Abashidze took refuge at the court of Vakhtang VI of Kartli in Tbilisi. He died there in 1722, and was buried in the Katskhi monastery in Imereti.
Answer this question based on the article: How many years after seizing the Imereti throne did Abashidze die?
A:
21