Context: In 1837, the personal union of the United Kingdom and Hanover ended because William IV's heir in the United Kingdom was female (Queen Victoria). Hanover could be inherited only by male heirs. Thus, Hanover passed to William IV's brother, Ernest Augustus, and remained a kingdom until 1866, when it was annexed by Prussia during the Austro-Prussian war. Despite being expected to defeat Prussia at the Battle of Langensalza, Prussia employed Moltke the Elder's Kesselschlacht order of battle to instead destroy the Hanoverian army. The city of Hanover became the capital of the Prussian Province of Hanover. After the annexation, the people of Hanover generally opposed the Prussian government.

Question: What ended in the year 1837?
Answer: the personal union of the United Kingdom and Hanover

Question: What was the name of William IV's heir?
Answer: Queen Victoria

Question: Who did the throne of Hanover pass to instead of Queen Victoria?
Answer: Ernest Augustus

Question: What happened to the kingdom of Hanover in 1866?
Answer: annexed by Prussia

Question: In which battle was the Hanover army destroyed?
Answer: Battle of Langensalza

Question: Why did the political ties between United Kingdom in Hanover and?
Answer: Unanswerable

Question: What was the name of William IV son
Answer: Unanswerable

Question: Who annexed the kingdom of Hanover in 1766?
Answer: Unanswerable

Question: Who is Hanover expected to lose to at the battle of Langensalza?
Answer: Unanswerable

Question: Who did the people of Hanover generally support after the annexation?
Answer: Unanswerable