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: Crimean Khan Haji Giray, learning of the defeat of the Budjak Tatars gathered 10,000-12,000 men and went against Kunitsky. At the end of December Kunitsky with 10,000-12,000 Cossacks and Moldavians left Budjak and began to cross the Prut River near the village of Tobak, not far from the town of Reni, Ukraine. Here on 30 December they were suddenly attacked by Tatar cavalry under Khan Haji Giray. Kunitsky built a fortified camp and successfully repelled the Tatar attacks. On the night of 3 to 4 January 1684 the Moldavian allies betrayed the Cossacks and left the Cossack camp. In this situation Kunitsky with the Cossack cavalry  broke through the enemy ring and crossed the Prut. The Cossack infantry  under Andrey Mogila also broke out and crossed the Prut near Boyanova, but suffered heavy losses. By 10 January only five thousand Cossacks reached Jassy. 
Question: How many days after the Cossacks and Moldavians were attacked by Tatar calalry under Khan Haji Giray did the Moldavian allies betray the Cossacks? 
Answer type: Number 
[EX A]: 4.

[EX Q]: Passage: After the end of Forty Years' War in 1424, Ava gave up its dream of rebuilding the Pagan Empire. Instead, for the next six decades, it would struggle to hold on to its vassal states. Rebellions arose every time a new king came to power. The new king would have to reestablish his power all over again by gaining the fealty of all the vassal states, usually by show of force. Of these, the remote vassal state of Toungoo , tucked away in the southeastern corner across the Pegu Yoma range, proved most troublesome to successive kings at Ava. Toungoo lords rebelled against Ava in 1426-1440, 1451-1459 and 1468-1470, usually with Pegu's implicit or explicit support. Ava also faced rebellions at Mohnyin  and Prome . The beginning of the end of Ava came in 1480. The new king Minkhaung II was greeted with a multitude of rebellions but it proved to be different this time. The most serious rebellion was by his younger brother, lord of Yamethin. With a serious rebellion so close to Ava, vassal states broke away one by one. The Yamethin rebellion went on until 1500. In 1482, Minkhaung's uncle at Prome successfully revolted, the Prome Kingdom sprang into existence. Ava's vassal Shan states of Mohnyin, Mogaung, Momeik and Kale also broke away in the 1490s. Surprisingly, Ava's steadfast ally during this period was the usually restive vassal of Toungoo which remained loyal to Ava until Minkhaung's death in 1501. 
Question: How many years was the longest Toungoo rebellion? 
Answer type: Number 
[EX A]: 14.

[EX Q]: Passage: Although nominally part of the Ottoman Empire, Yemen and the sahil  came progressively under the control of Muhammad Ali, ruler of Egypt, between 1821 and 1841. After the Egyptians withdrew from the Yemeni seaboard in 1841, Haj Ali Shermerki, a successful and ambitious Somali merchant, purchased from them executive rights over Zeila. Shermerki's governorship had an instant effect on the city, as he manoeuvred to monopolize as much of the regional trade as possible, with his sights set as far as Harar and the Ogaden. Shermerki was later succeeded as Governor of Zeila by Abu Bakr Pasha, a local Afar statesman. In 1874-75, the Egyptians obtained a firman from the Ottomans by which they secured claims over the city. At the same time, the Egyptians received British recognition of their nominal jurisdiction as far east as Cape Guardafui. In actuality, however, Egypt had little authority over the interior and their period of rule on the coast was brief, lasting only a few years . The British Somaliland protectorate was subsequently established in the late 1880s, after the ruling Somali authorities signed a series of protection treaties granting the British access to their territories on the northwestern coast. Among the Somali signatories were the Gadabuursi , Habar Awal , and Warsangali. When the Egyptian garrison in Harar was eventually evacuated in 1885, Zeila became caught up in the competition between the Tadjoura-based French and the British for control of the strategic Gulf of Aden littoral. By the end of 1885, the two powers were on the brink of armed confrontation, but opted instead to turn negotiations. They later signed a convention on 1 February 1888 defining the border between French Somaliland and British Somaliland. 
Question: How many years did Muhammad Ali rule Yemen and the sahil? 
Answer type: Number 
[EX A]:
20.