This task involves annotating the answer type to a given question that involve some kind of complex reasoning (including numerical reasoning). Note that the questions require looking at more than one part of the passage to answer. There are 3 possible answer types (i) spans, (ii) numbers and (iii) dates. If the answer can be found in the passage, label it as "span". If the answer is a number, label as "number". Similarly, label "date" if you think the answer to the given question is a date.

Ex Input:
Passage: The main legacy of the Revolt of the Barretinas was an enduring anti-French sentiment in the Catalan leadership and intelligentsia.  This would become relevant a decade later in 1700, when King Charles II died without a son.  Charles' death triggered the War of the Spanish Succession.  The two claimants were the French Philip, Duke of Anjou and the Austrian Emperor Leopold I.  The Spanish government chose Philip; French King Louis XIV, Philip's grandfather, naturally supported his grandson as well.  The Catalan upper classes, still distrustful of France from its efforts to stir the peasantry against them in 1689, had no love for Philip.  He was "a king chosen by Castilians."  In 1702, the cortes voted to recognize Leopold as king, and full-scale rebellion against Philip began in 1705 with the arrival of supporting Austrian troops.  The war would continue for nine more years, until the Siege of Barcelona in 1714 when the last remaining Catalan supporters of Leopold were defeated by the combined Franco-Castilian army.  The Nueva Planta decrees, issued by Philip from 1707-1714, ended the nominal split between Castile and Aragon and eliminated the traditional autonomy Aragon had kept.  Castilian law and institutions were mandated throughout Spain.
Question: In which year did the War of the Spanish Succession end?

Ex Output:
date


Ex Input:
Passage: In 2016, there were 122,051 people residing in Syracuse, located in the province of Syracuse, Sicily, of whom 48.7% were male and 51.3% were female. Minors (children ages 18 and younger) totalled 18.87 percent of the population compared to pensioners who number 16.87 percent. This compares with the Italian average of 18.06 percent (minors) and 19.94 percent (pensioners). The average age of Syracuse resident is 40 compared to the Italian average of 42. In the five years between 2002 and 2007, the population of Syracuse declined by 0.49 percent, while Italy as a whole grew by 3.56 percent. The reason for decline is a population flight to the suburbs, and northern Italy. The current birth rate of Syracuse is 9.75 births per 1,000 inhabitants compared to the Italian average of 9.45 births.
Question: What gender made up the most of the population?

Ex Output:
span


Ex Input:
Passage: Ethnic change has been transforming the population. By 2009, nearly 45 percent of the residents spoke a language other than English at home. Whites now comprise only 45 percent of the population, while the numbers of Hispanics grow steadily, along with Vietnamese, Korean and Chinese families. The percentage of foreign-born residents jumped to 30 percent in 2008 from 6 percent in 1970.  The mayor of Irvine, Sukhee Kang, was born in Korea, making him the first Korean-American to run a major American city. “We have 35 languages spoken in our city,” Kang observed. The population is diverse age-wise, with 27.0% under the age of 18, 9.4% from 18 to 24, 33.2% from 25 to 44, 20.6% from 45 to 64, and 9.9% 65 years of age or older. The median age is 33 years. For every 100 females, there were 99.0 males. For every 100 females age 18 and over, there were 96.7 males.
Question: How many people, in terms of percentage, were in the 3 smallest age groups combined?

Ex Output:

number