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: Consider Input: 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 

Output: 4.


Input: Consider Input: Passage: Tsakhiagiin Elbegdorj, as the chairman of the Democratic Party (Mongolia), co-led the Democratic Union Coalition to its first time historic victory in the Mongolian legislative election, 1996s winning 50 out of 76 parliamentary seats. Democratic Union Coalition of Democratic Party and Social Democratic Party (chairman Tsakhiagiin Elbegdorj) was in power in 1996-2000. Mendsaikhany Enkhsaikhan, election manager of Democratic Union Coalition worked as the Prime Minister from 7 July 1996 to 23 April 1998. In 1998, a clause in the constitution was removed that prohibited members of parliament to take cabinet responsibility. Thus on 23 April 1998, the Parliament elected (61–6) Elbegdorj, chairman of the Democratic Union Coalition and the Majority Group at the Parliament as the Prime Minister. Due to opposition MPRPs demand Elbegdorj lost confidence vote at the Parliament and was replaced by Janlavyn Narantsatsralt (Democratic Party) on 9 December 1998. Janlavyn Narantsatsralt worked as the Prime Minister for eight months until his resignation in July 1999. Rinchinnyamyn Amarjargal became Democratic Partys new chairman and served as the Prime Minister from 30 July 1999 to 26 July 2000. 
Question: How many years did Rinchinnyamyn Amarjargal  serve as Prime Minister? 
Answer type: Number 

Output: 1.


Input: Consider Input: Passage: Coming off their road win over the Jaguars, the Bills went home, donned their throwback uniforms, and played a Week 3 duel with the Oakland Raiders. In the first quarter, Buffalo trailed early as Raiders kicker Sebastian Janikowski got a 23-yard and a 35-yard field goal.  In the second quarter, the Bills got on the board with RB Marshawn Lynch's 14-yard TD run.  Oakland responded with Janikowski's 32-yard field goal. In the third quarter, the Raiders increased their lead with QB JaMarcus Russell getting a 1-yard TD run.  In the fourth quarter, Buffalo began to rally as Lynch got a 3-yard TD run.  Oakland immediately responded with Russell completing an 84-yard TD pass to WR Johnnie Lee Higgins.  Afterwards, the Bills completed its rally with QB Trent Edwards completing a 14-yard TD pass to WR Roscoe Parrish.  Then, Buffalo sealed the win with kicker Rian Lindell nailing the game-winning 38-yard field goal. With the win, the Bills improved to 3-0 for the first time since 1992.  With the Patriots' loss to the Dolphins, the Bills are now in first place in the AFC East after 3 weeks. Also, during halftime, former Bills DE Bruce Smith (the NFL's All-Time Sack Leader) was added to the Bills Wall of Fame. 
Question: How many yards longer was the longest field goal in the first 2 quarters compared to the shortest? 
Answer type: Number 


Output: 12.