Input: Article: Fiame Mata'afa Faumuina Mulinu'u II, one of the four highest-ranking paramount chiefs in the country, became Samoa's first Prime Minister. Two other paramount chiefs at the time of independence were appointed joint heads of state for life. Tupua Tamasese Mea'ole died in 1963, leaving Malietoa Tanumafili II sole head of state until his death on 11 May 2007, upon which Samoa changed from a constitutional monarchy to a parliamentary republic de facto. The next Head of State, Tuiatua Tupua Tamasese Efi, was elected by the legislature on 17 June 2007 for a fixed five-year term, and was re-elected unopposed in July 2012.

Now answer this question: What year did the first of the two heads of state die?

Output: 1963

Input: Article: Dissatisfaction with the conduct of the war was growing with the public in the UK and in other countries, aggravated by reports of fiascos, especially the humiliating defeat of the Charge of the Light Brigade at the Battle of Balaclava. On Sunday, 21 January 1855, a "snowball riot" occurred in Trafalgar Square near St. Martin-in-the-Field in which 1,500 people gathered to protest against the war by pelting buses, cabs, and pedestrians with snow balls. When the police intervened, the snowballs were directed at them. The riot was finally put down by troops and police acting with truncheons. In Parliament, Tories demanded an accounting of all soldiers, cavalry and sailors sent to the Crimea and accurate figures as to the number of casualties that had been sustained by all British armed forces in the Crimea; they were especially concerned with the Battle of Balaclava. When Parliament passed a bill to investigate by the vote of 305 to 148, Aberdeen said he had lost a vote of no confidence and resigned as prime minister on 30 January 1855. The veteran former Foreign Secretary Lord Palmerston became prime minister. Palmerston took a hard line; he wanted to expand the war, foment unrest inside the Russian Empire, and permanently reduce the Russian threat to Europe. Sweden and Prussia were willing to join the UK and France, and Russia was isolated.:400402, 406408

Now answer this question: What position did Lord Palmerston previously hold before becoming a Prime Minister?

Output: Foreign Secretary

Input: Article: Despite being an original story, Spectre draws on Ian Fleming's source material, most notably in the character of Franz Oberhauser, played by Christoph Waltz. Oberhauser shares his name with Hannes Oberhauser, a background character in the short story "Octopussy" from the Octopussy and The Living Daylights collection, and who is named in the film as having been a temporary legal guardian of a young Bond in 1983. Similarly, Charmian Bond is shown to have been his full-time guardian, observing the back story established by Fleming. With the acquisition of the rights to Spectre and its associated characters, screenwriters Neal Purvis and Robert Wade revealed that the film would provide a minor retcon to the continuity of the previous films, with the Quantum organisation alluded to in Casino Royale and introduced in Quantum of Solace reimagined as a division within Spectre rather than an independent organisation.

Now answer this question: Who was Bond's full time guardian?

Output:
Charmian Bond