instruction:
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.
question:
Passage: The Second Goryeo-Khitan War was an 11th-century conflict between the kingdom of Goryeo and the Liao dynasty near what is now the border between China and North Korea. It was the second of the Goryeo-Khitan Wars, with the First Goryeo-Khitan War occurring in 993, the second in 1010, and the third in 1018. When King Seongjong died in 997, Liao invested his successor Wang Song as king of Goryeo . In 1009, he was assassinated by the forces of the general Gang Jo. Using it as a pretext, the Liao attacked Goryeo in the next year. They lost the first battle but won the second one, and Gang Jo was captured and killed. The Liao occupied and burnt the Goryeo capital Kaesong. The Khitan withdrew after Goryeo reaffirmed its tributary relationship with the Khitan.
Question: which battle did Liao win?
answer:
span

question:
Passage: During the summer campaign of 1673, Turenne had the thankless task of trying to contain Leopold's troops under the command of Raimondo Montecuccoli. Montecuccoli finally joined with the Dutch troops of William III to besiege and take the city of Bonn from the French. In August 1673, The Habsburg monarchies of Spain and the Holy Roman Empire signed a formal alliance with the Republic that required that France be returned to her boundaries of 1659. This alliance was strengthened in October by Charles IV of Lorraine. Imperial and Dutch troops conquered the town of Naarden from the French on 13 September. The Spanish, who had yet to formally enter the war, declared war on the French on 16 October. At about the same time Frederick William re-entered the war against France. The position of Louis at this stage was bad enough, but it worsened when England made a separate peace, the Treaty of Westminster, with all of the nations arrayed against France on 19 February 1674. Charles II had been forced into making peace with the Republic by the Parliament which returned to session in October 1673.
Question: When did the Spanish declare war?
answer:
date

question:
Passage: In the 2006 Krystal Square Off, Kobayashis mark of 97 hamburgers was 30 better than his winning total in 2005 and 28 better than the World Record he set in 2004. At a speed-eating contest in Hong Kong on August 13, 2005, Kobayashi consumed 83 vegetarian jiaozi dumplings in 8 minutes. The next day, he ate 100 baozi in 12 minutes. Kobayashi also won the 2005 Alka-Seltzer US Open of Competitive Eating, a three-hour IFOCE elimination tournament on ESPN, as well as the Glutton Bowl, a two-hour IFOCE eating special that aired on the Fox Network in 2002. However, on Foxs 2003 show Man vs. Beast, Kobayashi lost in an eating competition against a 1089-pound (494 kg) Kodiak bear, when he ate 31 bunless hot dogs in 2 minutes and 36 seconds to the bears 50. In a 2014 interview, Kobayashi claims to have beaten the bear in the rehearsal. (In October 2012, Kobayashi broke the record held by the bear at the Texas state fair.)
Question: Which year was Kobayashis record for hamburgers higher, 2005 or 2004?
answer:
date