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.

[EX Q]: Passage: The Mataram conquest of Surabaya or Mataram-Surabaya War was a military campaign by the Sultanate of Mataram in the early 17th century that resulted in the capture of the Duchy of Surabaya  and its allies in eastern Java, in modern-day Indonesia. Prior to this conquest, Mataram and Surabaya were rivals for power in central and eastern Java. The campaign began in 1614 when Mataram, under the leadership of Sultan Agung, attacked Surabaya's allies, including Wirasaba. Surabaya and its allies launched a counterattack but were defeated near Pajang in 1616. Over the next few years, Mataram gradually conquered members of the Surabayan alliance, and by 1620, the city of Surabaya itself was under siege, holding out until it surrendered in 1625. With this conquest, Mataram unified most of central and eastern Java under its control, and cemented its position as the dominant power in Java. Surabaya and other conquered areas would remain in Mataram's hands until it was ceded to the Dutch East India Company in 1743. 
Question: How many years from the beginning of Mataram's campaign did it take for the city of Surabaya to surrender? 
Answer type: Number 
[EX A]: 11.

[EX Q]: Passage: With no official figures available, it is estimated that 600,000-900,000 persons fled the country during the Lebanese Civil War . Although some have since returned, this permanently disturbed Lebanese population growth and greatly complicated demographic statistics. Another result of the war was a large number of internally displaced persons. This especially affected the southern Shia community, as Israeli invasion of southern Lebanon in 1978, 1982 and 1996 prompted waves of mass emigration, in addition to the continual strain of occupation and fighting between Israel and Hezbollah . Many Shias from Southern Lebanon resettled in the suburbs south of Beirut. After the war, the pace of Christian emigration accelerated, as many Christians felt discriminated against in a Lebanon under increasingly oppressive Syrian occupation. According to a UNDP study, as much as 10% of the Lebanese had a disability in 1990. Other studies have pointed to the fact that this portion of society is highly marginalized due to the lack of educational and governmental support of their advancement. 
Question: How many years passed between the first and the third Israeli invasions in Lebanon? 
Answer type: Number 
[EX A]: 18.

[EX Q]: Passage: Vasili III, the Grand Prince of Moscow, founded the Novodevichy Convent in 1524 in commemoration of his conquest of Smolensk in 1514. The structure began as a fortress at a curve of the Moskva River three versts to the south-west of the Moscow Kremlin. It became an important part of the southern defensive belt of Moscow, which had already included a number of other monasteries. Upon its founding, the Novodevichy Convent was granted 3,000 rubles and the villages of Akhabinevo and Troparevo. Vasili's son, tsar Ivan the Terrible , would later grant a number of other villages to the convent. The Novodevichy Convent housed many ladies from the Russian royal families and boyar clans who had been forced to take the veil, such as Ivan the Terribles daughter-in-law Yelena Sheremeteva , Feodor I's wife Irina Godunova , Sofia Alekseyevna , Eudoxia Lopukhina , and others. In 1610-1611 a Polish unit under the command of Aleksander Gosiewski captured the Novodevichy Convent. Once Russian forces had retaken the convent, tsar Michael Fyodorovich supplied it with permanent guards . By the end of the 17th century, the Novodevichy Convent possessed 36 villages  in 27 uyezds of Russia. In 1744, it owned 14,489 peasants. 
Question: How many years after the Novodevichy Convent was founded was it captured by a Polish unit? 
Answer type: Number 
[EX A]:
86.