Input: In 1665, Charles II became the last male Habsburg King of Spain; suffering from ill-health all his life, his death was anticipated almost from birth and his successor debated for decades. In 1700, the Spanish Empire included possessions in Italy, the Spanish Netherlands, the Philippines and the Americas; while no longer the dominant power, it proved remarkably resilient and remained largely intact. Acquisition of an undivided Empire by the Habsburgs or Bourbons would change the balance of power and the conflict ultimately involved much of Europe. In making dynastic claims secondary, the war marks a key point in the development of the nation state. It was also the last of Louis XIV's wars to establish defensible borders and French supremacy in Europe, the most recent being the 1688-1697 Nine Years' War when France was unable to defeat the Grand Alliance. The 1697 Treaty of Ryswick was driven by mutual exhaustion and the recognition by Louis that he needed allies for a war over the Succession. Emperor Leopold initially refused to sign the Treaty since it left this issue unresolved; he reluctantly did so in October 1697 but most viewed Ryswick as only a pause in hostilities.

Question: Which happened last, the signing of the treaty of the death of King Charles II?

Input: The Church of Ireland, at 2.7% of the population, is the second largest Christian denomination. Membership declined throughout the twentieth century, but experienced an increase early in the 21st century, as have other small Christian denominations. Significant Protestant denominations are the Presbyterian Church and Methodist Church. Immigration has contributed to a growth in Hindu and Muslim populations. In percentage terms, Orthodox Christianity and Islam were the fastest growing religions, with increases of 100% and 70% respectively. Ireland's patron saints are Saint Patrick, Saint Bridget and Saint Columba. Saint Patrick is the only one commonly recognised as the patron saint. Saint Patrick's Day is celebrated on 17 March in Ireland and abroad as the Irish national day, with parades and other celebrations. As with other predominantly Catholic European states, Ireland underwent a period of legal secularisation in the late twentieth century. In 1972, the article of the Constitution naming specific religious groups was deleted by the Fifth Amendment in a referendum. Article 44 remains in the Constitution: "The State acknowledges that the homage of public worship is due to Almighty God. It shall hold His Name in reverence, and shall respect and honour religion." The article also establishes freedom of religion, prohibits endowment of any religion, prohibits the state from religious discrimination, and requires the state to treat religious and non-religious schools in a non-prejudicial manner. Religious studies was introduced as an optional Junior Certificate subject in 2001. Although many schools are run by religious organisations, a secularist trend is occurring among younger generations.

Question: How many years did these events span for?

Input: With 27 games to play, the Braves went 9-18 in September to finish the season with a record of 89-73. The Cardinals, meanwhile, went 18-8 to finish at 90-72. Braves closer Craig Kimbrel, who had not surrendered a single earned run in July or August, carried a 4.76 ERA in September with three blown saves. After being dominant in his role for much of the season, Braves setup man Jonny Venters posted a 5.11 September ERA. These sharp declines in both relievers led many critics to question the handling of the bullpen by Braves manager Fredi Gonzalez. Veteran starter Derek Lowe posted a win-loss record of 0-5 in September with an ERA of 8.75. Shortly into the offseason, Lowe would be traded to the Cleveland Indians. The Braves starters lasted six or more innings only three times over the last 23 games. Over the last five games, all of which were losses for the Braves, the team managed to score only seven runs. Braves catcher Brian McCann (baseball), often regarded as the best offensive catcher in the Majors, hit only .183 with two home runs in September. The offense as a whole hit for only a .235 batting average (baseball) and a .300 on-base percentage in September, both second-worst in the National League. The .195 Scoring position average by Braves hitters was second worst in the Majors. Hitting coach Larry Parrish was fired two days following the last game of the season.

Question: How many more games did the Cardinals win in the season than they lost?

Input: Trying to snap a two-game skid, the Falcons flew to the Louisiana Superdome for a Week 7 divisional duel with the New Orleans Saints. Due to QB Joey Harrington's ineffectiveness from last week's loss to the Giants, QB Byron Leftwich was given the start. In the first quarter, Atlanta trailed early as Saints QB Drew Brees completed a 37-yard TD pass to WR Devery Henderson. The Falcons responded with former Saints kicker Morten Andersen's 38-yard field goal. In the second quarter, Atlanta began to play well as Andersen got a 33-yard field goal, while Leftwich completed a 9-yard TD pass to WR Roddy White. In the third quarter, New Orleans retook the lead with RB Pierre Thomas getting a 24-yard TD run. On the Falcons' next possession, Leftwich's left leg got injured during a sack by Saints DE Will Smith. Harrington took over for the rest of the game. In the fourth quarter, Andersen gave Atlanta a 21-yard field goal. The Saints sealed the win with Brees hooking up with RB Reggie Bush on a 4-yard TD pass, along with Bush's 2-point conversion run. With their third-straight loss, the Falcons entered their bye week at 1-6.

Question:
Which player threw the second longest touchdown pass?