Input: Going for their fourth-straight win, the Dolphins traveled to Ford Field for a Thanksgiving fight with the Detroit Lions. This game would be marked as Dolphins QB Joey Harrington's return to Detroit, as he was constantly booed throughout the contest. In the first quarter, Miami trailed as Lions QB Jon Kitna got Detroit off to a fast start. Kitna would complete a 2-yard TD pass to TE Dan Campbell, while kicker Jason Hanson nailed a 52-yard field goal. Afterwards, Harrington started to get the Dolphins back into business as he completed his first-ever Thanksgiving touchdown pass on an 8-yard strike to WR Marty Booker. In the second quarter, Harrington acquired the only score of the period on a 5-yard TD pass to TE Randy McMichael. In the third quarter, kicker Olindo Mare nailed a 42-yard field goal, while Harrington and Booker connected with each other again on a 19-yard TD pass. In the fourth quarter, Mare managed to put the game away with a 28-yard field goal. RB Ronnie Brown only had 68 yards rushing (with 5 yards receiving), as he left the game early with a broken left hand. He is currently week-to-week and will likely miss the team's next game against Jacksonville. With the Dolphins victory, not only did the Dolphins improve to 5-6, but Harrington also got his second-ever Thanksgiving Day victory and 1st, 2nd, and 3rd touchdown pass ever on Thanksgiving Day.

Question: How many field goals were kicked shorter than 40 yards?

Input: The peace Treaty of Limerick signed on 3 October 1691 offered favourable terms to Jacobites willing to stay in Ireland and give an oath of loyalty to William III. Peace was concluded on these terms between Sarsfield and Ginkell, giving toleration to Catholicism and full legal rights to Catholics that swore an oath of loyalty to William III and Mary II. The Protestant-dominated Irish Parliament refused to ratify the articles of the Treaty in 1697, and from 1695 on, updated the penal laws, which discriminated harshly against Catholics. Catholics saw this as a severe breach of faith. A popular contemporary Irish saying was, cuimhnigi Luimneach agus feall na Sassanaigh . The Papacy was an enemy of Louis of France and therefore did not support James in 1691, but the new Pope Pope Innocent XII changed its policy to support for France, and therefore James, from 1693. This factor hardened Protestant attitudes towards Catholics and Jacobitism in Ireland. Part of the treaty agreed to Sarsfield's demand that the Jacobite army could leave Ireland as a body and go to France. Ships were even provided for this purpose. This event was popularly known in Ireland as the "Flight of the Wild Geese". Around 14,000 men with around 10,000 women and children left Ireland with Patrick Sarsfield in 1691. Initially, they formed the army in exile of James II, though operating as part of the French army. After James' death, the remnants of this force merged into the French Irish Brigade, which had been set up in 1689 from 6,000 Irish recruits sent by the Irish Jacobites in return for French military aid.

Question: How many years did it take for the Papacy to change its mind about supporting James after 1691?

Input: Trying to snap a two-game skid, the Raiders flew to LP Field for a Week 8 interconference duel with the Tennessee Titans. In the first quarter, Oakland struck first with kicker Sebastian Janikowski getting a 50-yard field goal. The Titans would respond with kicker Rob Bironas getting a 35-yard field goal. In the second quarter, the Raiders jumped back into the lead with Janikowski kicking a 43-yard and a 54-yard field goal. In the third quarter, Tennessee drew close with RB Chris Henry getting a 24-yard TD run for the only score of the period. In the fourth quarter, the Titans took the lead with Bironas getting a 23-yard field goal. QB Daunte Culpepper tried to lead Oakland back into the lead, but Tennessee's defense held them off. With their third-straight loss, not only did the Raiders fall to 2-5, but they have now lost 14 out of their last 15 road games.

Question: How many yards longer was Sebastian Janikowski's longest field goal than Rob Bironas' longest field goal?

Input: Another large victory gave the 49ers their first back-to-back victories of the season. Quarterback Colin Kaepernick only completed 6 of his 15 passes, with the running attack and defense at the top of their games. Frank Gore and Anthony Dixon ran for touchdowns, while cornerback Tramaine Brock picked off two Matt Schaub passes, one for a touchdown on Schaub's first pass of the game, with Tony Jerod-Eddie also picking up an interception. The 49ers improved to 3-2, just one game off the 4-1 Seattle Seahawks in the battle for NFC West, who had lost to the Indianapolis Colts.

Question:
How many touchdowns did Frank Gore get?