Input: The Jurchens were a Tungusic-speaking group of semi-agrarian tribes inhabiting areas of northeast Asia that are now part of Northeast China. Many of the Jurchen tribes were vassals of the Liao dynasty , an empire ruled by the nomadic Khitans that included most of modern Mongolia, a portion of North China, Northeast China, northern Korea, and parts of the Russian Far East. To the south of the Liao lay the Han Chinese Song Empire . The Song and Liao were at peace, but since a military defeat to the Liao in 1005, the Song paid its northern neighbor an annual indemnity of 200,000 bolts of silk and 100,000 ounces of silver. In 1114, the chieftain Wanyan Aguda united the disparate Jurchen tribes and led a revolt against the Liao. In 1115 he named himself emperor of the Jin "golden" dynasty . Informed by a Liao defector of the success of the Jurchen uprising, the Song emperor Huizong and his highest military commander the eunuch Tong Guan saw the Liao weakness as an opportunity to recover the Sixteen Prefectures, a line of fortified cities and passes that the Liao had annexed from the Shatuo Turk Later Jin in 938, and that the Song had repeatedly but unsuccessfully tried to reconquer. The Song thus sought an alliance with the Jin against their common enemy the Liao.

Question: What event happened first, Agunda naming himself emperor, or the unsuccessful conquer?

Input: Still searching for their first win of the year, the Dolphins went home for a Week 4 duel with the Oakland Raiders, featuring former teammate Daunte Culpepper. The game was delayed for 30 minutes due to thunderstorms in the area. In the first quarter, Miami trailed early as Culpepper completed a 7-yard TD pass to WR Jerry Porter. He even got a 2-yard TD run. In the second quarter, the Dolphins managed to get on the board with RB Ronnie Brown getting a 9-yard TD run for the only score of the period. In the third quarter, the 'Fins managed to get closer with kicker Jay Feely getting a 29-yard field goal, yet Oakland answered with Culpepper getting a 5-yard TD run. Miami ended the period with QB Trent Green completing a 3-yard TD pass to TE Justin Peelle. In the fourth quarter however, Culpepper delivered the final blows by hooking up with Porter again on a 27-yard TD pass and getting a 3-yard TD run.

Question: Who scored more points, Oakland or Miami?

Input: Coming off their season-sweep over the Ravens, the Bengals went home a Week 11 interconference duel with the Arizona Cardinals. In the first quarter, Cincinnati struck first with QB Carson Palmer completing a 19-yard TD pass to WR T.J. Houshmandzadeh. The Cardinals would answer with CB Antrel Rolle returning an interception 55 yards for a touchdown. In the second quarter, the Bengals regained the lead with kicker Shayne Graham getting a 41-yard field goal. However, Arizona took the lead with QB Kurt Warner completing a 44-yard TD pass to WR Anquan Boldin. Cincinnati responded with Graham kicking a 38-yard field goal, but the Cardinals increased their lead with Warner completing a 5-yard TD pass to WR Larry Fitzgerald. In the third quarter, the Bengals trailed as RB Edgerrin James gave Arizona a 3-yard TD run. Cincinnati tried to rally as Palmer completed a 37-yard TD pass to WR Chris Henry, while RB DeDe Dorsey returned a blocked punt 19 yards for a touchdown. The Cardinals sealed the win with Rolle returning an interception 54 yards for a touchdown.

Question: How many total yards of touchdown passes did Kurt Warner make?

Input: The former supporters of James III under the leadership of John Stewart, 1st Earl of Lennox met up at Dumbarton Castle in October 1489. They had hoped to gain the support of Henry VII of England. James IV defeated them in a battle between the Touch and Menteith hills near Stirling on 11 and 12 October. James IV used Dumbarton as the west coast base for his navy and campaigns to subdue the Western Isles. James was at Dumbarton with the Chancellor of Scotland, Colin Campbell, 1st Earl of Argyll, in November 1489. He had the use of a ship belonging to the Laird of Luss. In the following February a royal ship was 'chaysit' by the English and lost some of her cables. In 1494 a row barge was built at Dumbarton for the king using timber from Loch Lomond. In March 1495 James IV was provided with a camp bed for use at sea and a boat carried cannon to Dumbarton. Patrick Hepburn, 1st Earl of Bothwell, was made Captain of the castle on 1 April 1495. A man played on the clarschaw, a Gaelic harp, for the King. In 1505 Dumbarton was the King's base for visiting the Western Isles. One ship's mast was made from timber from Drymen. On 5 June James was entertained by a French 'quhissilar', perhaps playing a recorder and on 8 June James played cards with John Murray and Master Robert Cockburn losing 4-10 shillings, and later that day attended Evensong in the Parish kirk and College of Dumbarton. In 1505 John Ramsay built a ship for the King called the Columb, . In December 1505 a sword that had belonged to William Wallace was repaired.

Question:
Which happened first, Hepburn being made Captain of the castle, or John Ramsey building a ship for the King?