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.

Q: Passage: Persia attempted to ratify the Treaty of Constantinople , by demanding that the Ja'fari, also known as the Imamiyyah was to be accepted as a fifth legal sect of Islam. In 1743, Nader Shah declared war on the Ottoman Empire. He demanded the surrender of Baghdad. The Persians had captured Baghdad in 1623 and Mosul in 1624, but the Ottomans had recaptured Mosul in 1625 and Bagdad in 1638. The Treaty of Zuhab in 1639 between the Ottoman Empire and the Safavid Empire had resulted in peace for 85 years. After the fall of the Safavid Dynasty, Russia and the Ottoman Empire agreed to divide the northwest and the Caspian region of Persia, but with the advent of Nader Shah, the Russians and the Turks withdrew from the region. Nader Shah waged war against the Ottomans from 1730 to 1736 but it ended with a stalemate. Nader Shah afterwards turned east and declared war on the Moghul Empire and invaded India, in order to refund his wars against the Ottomans.
Question: How many years did Nader Shah wage war against the Ottomans?

A: number
****
Q: Passage: As of the census of 2000, 750,097 people, 286,098 households, and 197,693 families resided in the county. The population density was 1,553 people per square mile (599/km). The 297,434 housing units averaged 238 units/km (616 units/sq mi). The Race (United States Census) of the county was 86.46% White, 7.46% Black or African American, 0.11% Native American, 4.02% Asian, 0.03% Pacific Islander, 0.75% from other races, and 1.16% from two or more races. About 2.04% of the population were Hispanic or Latino of any race, 17.5% were of German people, 16.7% Irish people, 14.3% Italian people, 6.5% English people, and 5.0% Polish people ancestry according to 2000 United States Census. Around 90.5% spoke English language, 2.0% Spanish language, 1.1% korean language, and 1.0% Italian language as their first language. Historically, much of western Montgomery County is part of the Pennsylvania Dutch Country, with a great many descendants of German language-speaking settlers from the 18th century.
Question: Did more people have Italian or Polish ancestry?

A: span
****
Q: Passage: Until 1998, Shearer was paid $30,000 per episode. During a pay dispute in 1998, Fox threatened to replace the six main voice actors with new actors, going as far as preparing for casting of new voices. The dispute, however, was resolved and Shearer received $125,000 per episode until 2004, when the voice actors demanded that they be paid $360,000 an episode. The dispute was resolved a month later, and Shearers pay rose to $250,000 per episode. After salary re-negotiations in 2008, the voice actors received $400,000 per episode. Three years later, with Fox threatening to cancel the series unless production costs were cut, Shearer and the other cast members accepted a 30 percent pay cut, down to just over $300,000 per episode. On May 13, 2015, Shearer announced he was leaving the show. After the other voice actors signed a contract for the same pay, Shearer refused, stating it was not enough. Al Jean made a statement from the producers saying "the show must go on," but did not elaborate on what might happen to the characters Shearer voiced. On July 7, 2015, Shearer agreed to continue with the show, on the same terms as the other voice actors.
Question: Did Shearer make more money in 1998 or 2004?

A:
date
****