Input: Although few buildings remain from this period there are records of works in 1617, 1618, and 1628-9. A replacement Wallace Tower was built superseding the medieval building. In June 1618 masons were working on the upper storey and it was decided to make the tower larger. Externally it was finished with lime plaster called harling. At the south side there was a bell house. By 1627 it was discovered that the keeper Sir John Stewart of Methven had neglected the fortress. He was replaced by Sir John Stewart of Traquair who recorded the poor state of the building. Surviving accounts mostly record work on the artillery and the 'foir yet wall' a defence on the southern side. The Scottish Parliament in 1644 judged that the castle was likely to more hurtful than useful to the country. In November 1645 the Committee of Estates approved the recruitment of thirty extra soldiers by the keeper John Semple to guard the increased number of prisoners. The castle's strategic importance declined after Oliver Cromwell's death in 1658. However, due to threats posed by Jacobites and the French in the eighteenth century, new structures and defences were built and the castle was garrisoned until World War II. Some documentation for these later works is preserved in the National Archives of Scotland.

Question: How many years after the recruitment of 30 extra soldiers by John Semple did Oliver Cromwell die?


Input: The size of the indemnity had been the hardest factor to accept for the Tibetan negotiators. The Secretary of State for India, St John Brodrick, had in fact expressed the need for it to be "within the power of the Tibetans to pay" and given Younghusband a free hand to be "guided by circumstances in this matter". Younghusband raised the indemnity demanded from 5,900,000 to 7,500,000 rupees, and further demanded the right for a British trade agent, based at Gyantse, to visit Lhasa "for consultations". It seems that he was still following Lord Curzon's geo-political agenda to extend British influence in Tibet by securing the Chumbi Valley for Britain.  Younghusband wanted the payment to be met by yearly instalments; it would have taken about 75 years for the Tibetans to clear their debt, and since British occupation of the Chumbi valley was surety until payment was completed, the valley would remain in British hands. Younghusband wrote to his wife immediately after the signing; "I have got Chumbi for 75 years. I have got Russia out for ever". The regent commented that "When one has known the scorpion  the frog  is divine". The Amban later publicly repudiated the treaty, while Britain announced that it still accepted Chinese claims of authority over Tibet. Acting Viceroy Lord Ampthill reduced the indemnity by two-thirds and considerably eased the terms in other ways. The provisions of this 1904 treaty were revised in the Anglo-Chinese Convention of 1906. The British, for a fee from the Qing court, also agreed "not to annex Tibetan territory or to interfere in the administration of Tibet", while China engaged "not to permit any other foreign state to interfere with the territory or internal administration of Tibet".

Question: How many years before the Anglo-Chinese Convention of 1906 did the treaty that was revised at the convention signed?


Input: The Ravens' next match was an AFC North rivalry match against the Browns at home. In  the 1st quarter the Ravens trailed early when kicker Phil Dawson made a 28-yard field goal, but got the lead back after QB Joe Flacco found WR Anquan Boldin on an 8 and a 12-yard TD pass. After that the Ravens fell behind when RB Peyton Hillis made a 1-yard TD run, followed in the 4th quarter by QB Seneca Wallace completing a 1-yard TD pass to TE Benjamin Watson. Then the Ravens replied and took the lead when Flacco made a 27-yard TD pass to WR Anquan Boldin, followed by kicker Billy Cundiff nailing a 49-yard field goal.

Question: How many yards longer was Joe Flacco's second touchdown pass compared to his first?


Input: Initial theatrical run The film received steady attendance after opening in North America on Friday, December 19, 1997. By the end of that same weekend, theaters were beginning to sell out. The film earned $8,658,814 on its opening day and $28,638,131 over the opening weekend from 2,674 theaters, averaging to about $10,710 per venue, and ranking number one at the box office, ahead of the eighteenth James Bond film, Tomorrow Never Dies. By New Years Day, Titanic had made over $120 million, had increased in popularity and theaters continued to sell out. Its highest grossing single day was Saturday, February 14, 1998, on which it earned $13,048,711, more than eight weeks after its North American debut. It stayed at number one for 15 consecutive weeks in North America, a record for any film. The film stayed in theaters in North America for almost 10 months before finally closing on Thursday, October 1, 1998 with a final domestic gross of $600,788,188. Outside North America, the film made double its North American gross, generating $1,242,413,080 and accumulating a grand total of $1,843,201,268 worldwide from its initial theatrical run.

Question:
Which area had the largest gross, outside North America or inside north America?