qnli question: What position did Lord Palmerston previously hold before becoming a Prime Minister? sentence: 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.