Instructions: This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
Input: Passage: After a few years of peace, the Ottoman Empire attacked the Habsburg Empire again. The Turks almost captured the Empire's capital of Vienna, but king of Poland John III Sobieski led a Christian alliance that defeated them in the Battle of Vienna, which shook the Ottoman Empire's hegemony in south-eastern Europe. A new Holy League was initiated by Pope Innocent XI and encompassed the Holy Roman Empire , joined by the Venetian Republic and Poland in 1684 and the Tsardom of Russia in 1686. Ottomans suffered two decisive defeats against the Holy Roman Empire: the second Battle of Mohacs in 1687 and the Battle of Zenta a decade later, in 1697. On the smaller Polish front, after the battles of 1683 , Sobieski, after his proposal for the League to state a major coordinated offensive, undertook a rather unsuccessful offensive in Moldavia in 1686, with the Ottomans refusing a major engagement and harassing the army. For the next four years Poland would blockade the key fortress at Kamenets, and Ottoman Tatars would raid the borderlands. In 1691, Sobieski undertook another expedition to Moldavia, with slightly better results, but still with no decisive victories. The last battle of the campaign was the Battle of Podhajce in 1698, where Polish hetman Feliks Kazimierz Potocki defeated the Ottoman incursion into the Commonwealth. The League won the war in 1699 and forced the Ottoman Empire to sign the Treaty of Karlowitz. The Ottomans lost much of their European possessions, with Podolia returned to Poland.
Question: After the battles of 1683, how many years did Sobieski take before he attacked Moldavia?
Answer type: Number
Output:
3.