Input: The Toi invasion was the invasion of northern Kyushu by Jurchen pirates in 1019. At the time, Toi meant "barbarian" in the Korean language. The Toi pirates sailed with about 50 ships from direction of Goryeo, then assaulted Tsushima and Iki, starting 27 March 1019. After the Iki Island garrison comprising 147 soldiers was wiped out, the pirates has proceed to Hakata Bay. For a week, using Noko Island in the Hakata Bay as a base, they sacked villages and kidnapped over 1,000 Japanese, mostly women and young girls, for use as slaves. The Dazaifu, the administrative center of Kyushu, then raised an army and successfully drove the pirates away. During the second failed raid to Matsuura 13 April 1019, three enemies were captured by the Japanese army. They were identified as Koreans. They said that they had guarded the borderland but had been captured by the Toi. However, this was unlikely, and the Japanese officers suspected them because there had been Korean pirates attacking Japan coasts during the Silla period. A few months later, the Goryeo delegate Jeong Jaryang reported that Goryeo forces attacked the pirates off Wonsan and rescued about 260 Japanese. The Korean government then repatriated them to Japan where they were thanked by the Dazaifu and given rewards. There remain detailed reports by two captive women, Kura no Iwame and Tajihi no Akomi. These Jurchen pirates lived in what is today Hamgyongdo, North Korea.

Question: Which happend first, the assult of Tsushima and Iki, or the second raid to Matsuura?

Input: Coming off their divisional home win over the Packers, the Vikings flew to Raymond James Stadium for a Week 11 duel with the Tampa Bay Buccaneers. In the first quarter, the Vikings struck first as kicker Ryan Longwell got a 43-yard field goal. The Buccaneers responded with kicker Matt Bryant getting a 39-yard field goal. In the second quarter, Minnesota answered with QB Gus Frerotte completing a 4-yard TD pass to WR Bobby Wade. Tampa Bay would reply with Bryant making a 26-yard field goal. The Vikings closed out the half with Longwell getting a 26-yard field goal. In the third quarter, the Buccaneers tied the game with FB B. J. Askew getting a 1-yard TD run. In the fourth quarter, Tampa Bay took the lead as Bryant nailed a 29-yard and a 26-yard field goal. Minnesota tried to rally, but the Buccaneers' defense was too much to overcome.

Question: How many yards was Matt Bryant's shortest field goal?

Input: In the end, Sigismund did not succeed in becoming tsar or in securing the throne for Wadysaw, but he was able to expand the Commonwealth's territory. During his reign Poland was the largest and most populous country in Europe. On 11 December 1618 the Truce of Deulino,:567 which concluded the Dimitriad's war, gave the Commonwealth control over some of the conquered territories, including the territories of Chernigov and Severia and the city of Smolensk, and proclaimed a 15-year truce. Wadysaw refused to relinquish his claim to the Russian throne, even though Sigismund had already done so. While the Commonwealth gained some territories in the east, in terms of finance and lives it was a very costly victory. In 1632 the Truce of Deulino expired, and hostilities immediately resumed in the course of a conflict known as the Smolensk War.:587 This time the war was started by the Russians, who tried to exploit the suspected weakness of the Commonwealth after the unexpected death of Sigismund III.:587 However, they failed to regain Smolensk. Mikhail Shein surrendered to Wadysaw IV on 1 March 1634, and the Russians accepted the Treaty of Polyanovka in May 1634.:587 The Russians had to pay 20,000 rubles to the Commonwealth, but Wadysaw relinquished his claim to the Russian throne:587 and recognized Michael as the legitimate tsar of Russia, also returning the Russian royal insignia.

Question: What ended the first war?

Input: Trying to snap a two-game skid, the Lions stayed at home for a Week 12 Thanksgiving divisional duel with the Green Bay Packers. In the first quarter, Detroit took the early lead as kicker Jason Hanson got a 47-yard and a 41-yard field goal. However, in the second quarter, the Packers took the lead as QB Brett Favre completed an 11-yard TD pass to WR Greg Jennings, along with RB Ryan Grant getting a 5-yard TD run. The Lions tried to respond as Hanson kicked a 45-yard field goal, yet Green Bay answered with kicker Mason Crosby getting a 20-yard field goal. In the third quarter, the Packers increased their lead with Favre completing a 4-yard TD pass to Jennings. Detroit continued to try to come back as Hanson kicked a 52-yard FG, yet Green Bay was one step ahead as Favre completed a 3-yard TD pass to WR Ruvell Martin. In the fourth quarter, the Packers added to their lead with Crosby kicking a 20-yard field goal. The Lions tried to mount a comeback as QB Jon Kitna completed a 6-yard TD pass to rookie WR Calvin Johnson, along with RB Kevin Jones getting a 1-yard TD run. However, Green Bay sealed the win with Crosby nailing a 26-yard field goal. With their third-straight loss (along with their fourth-straight Thanksgiving loss), Detroit fell to 6-5.

Question:
How many yards was the longest field goal?