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.

[Q]: Passage: 2. The relative quiet of the Tatar attacks on Russia in the late 30s and early 40s of the 17th century is undoubtedly due to the occupation of Azov by the Don Cossacks. The Russian government did not want to start a war with Turkey, did not send troops and after a long occupation the Cossacks left the town in 1642. The builders of the Belgorod Line and residents of the southern Russian districts, by the increase of Tatar attacks, immediately felt the change in the situation on the lower reaches of the Don. 3. In summer of 1633, 2000 Budjak Tatars invaded the southern Polish land and began to ravage Podolia. Crown Field Hetman Stanislaw Koniecpolski camping with the Polish army at Bar, led the 2000 cavalry against the Tatars and forced them to retreat. He then crossed the Dniester and on 4 July at the Battle of Sasov Rog on the River Prut defeated enemy. Poles captured several Budjak mirzas, among whom was the son-in-law of Cantemir Mirza, freed all the captives and captured a large part of the loot. In August Silistrian Pasha, Abaza Pasha, led the Turkish troops came to the Polish border and encamped near Khotin . Koniecpolski with a Polish army went out to meet the enemy and established fortified camp near the fortress Kamenetz-Podolsky. Initially Abaza Pasha entered into peace negotiations with Koniecpolski. On 19 September the Budjak Horde under Kantemir Mirza arrived to help Abaza-Pasha. On 20 September Abaza-Pasha crossed the Dniester and Kantemir Mirza attacked the Polish position. On 23 September Abaza Pasha, confident of his numerical superiority, attacked the Polish camp near Kamenets, but was defeated and forced to retreat to Moldavia.
Question: How many times did the Tatars invade Southern Polish and invaded Podolia?
Answer type: Number
[A]: 2.

[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
[A]: 18.

[Q]: Passage: The Mexican Empire was quickly overthrown under the Plan of Casa Mata, the provinces of the empire became independent states. The first Republic of Yucatan, declared on May 29, 1823, joined the Federal Republic of the United Mexican States as the Federated Republic of Yucatan on December 23, 1823. The second Republic of Yucatan emerged when the federal pact signed by Yucatan and endorsed in the Constitution of Yucatan of 1825 was broken by the centralist government of Mexico since 1835. In 1841 the state of Tabasco decreed its separation from Mexico and Miguel Barbachano, then governor of Yucatan, sent a commission headed by Justo Sierra O'Reilly to meet with Tabasco authorities to propose the creation of an independent federal republic from Mexico formed by the two states. The idea failed when Tabasco rejoined Mexico in 1842. On August 22, 1846, Mexican interim president Jose Mariano Salas restored the 1824 constitution and the federalism. Two years later, during the government of president Jose Joaquin de Herrera, Miguel Barbachano ordered the reinstatement of Yucatan to Mexico under the Constitution of Yucatan of 1825. A decisive factor for the reinstatement was the Caste War, which forced Yucatan to seek outside help. In 1852 due to internal struggles between opposing political factions, was created the Territory of Campeche. On April 29, 1863, during the government of Benito Juarez, Campeche gained its current status as an independent state.
Question: How many months after the first Republic of Yucatan was declared did it join the Federal Republic of the United Mexican States as the Federated Republic of Yucatan?
Answer type: Number
[A]:
7.