Given a context passage, generate a question from the passage such that its answer is shortest continous span from the passage.
Example: In 1582 the united provinces invited francis, duke of anjou to lead them; but after a failed attempt to take antwerp in 1583, the duke left the netherlands again. after the assassination of william of orange (10 july 1584), both henry iii of france and elizabeth i of england declined the offer of sovereignty. however, the latter agreed to turn the united provinces into a protectorate of england (treaty of nonsuch, 1585), and sent the earl of leicester as governor-general. this was unsuccessful and in 1588 the provinces became a confederacy. the union of utrecht is regarded as the foundation of the republic of the seven united provinces, which was not recognized by the spanish empire until the peace of westphalia in 1648.
Example solution: In what year did francis, duke of anjou leave the netherlands?
Example explanation: The generated question is perfect. Because the question is based on second sentence of the input passage and its answer is 1583.

Problem: The rebellion of the city of Danzig was a revolt from December 1575 to December 1577 of the city against the outcome of the Polish-Lithuanian royal election, 1576. The Polish throne was contested by Stephen Bathory and the Holy Roman Emperor Maximillian II. It began on 12 December 1575 when Emperor Maximillian was chosen as monarch by the Polish Senate, while the majority of the szlachta had voted for Bathory. It ended on 16 December 1577. Maximilian's II death in fall of 1576 weakened Danzig's position and made the conflict less about the recognition of the ruler than about Danzig's privileges. With neither side being able to defeat the other militarily, a compromise was reached, with economic as well as religious privileges of the city being restored and recognized, in return for a large reparation and recognition of Bathory as the king.
Solution: Which person received the majority of the people's vote?