Task: Question Generation
Input (English): During the Cantonal Revolution of 1873, a cantonalist uprising that took place during the First Spanish Republic, the city was consolidated with most of the nearby cities in the Federal Canton of Valencia (proclaimed on 19 July and dissolved on 7 August). It did not have the revolutionary fervor of the movement in cities like Alcoy, as it was initiated by the bourgeoisie, but the Madrid government sent General Martinez-Campos to stifle the rebellion by force of arms and subjected Valencia to an intense bombardment. The city surrendered on 7 August; Alfonso XII was proclaimed king on 29 December 1874, and arrived in Valencia on 11 January 1875 on his way to Madrid, marking the end of the first republic. Despite the Bourbon restoration, the roughly even balance between conservatives and liberals in the government was sustained in Valencia until the granting of universal male suffrage in 1890, after which the Republicans, led by Vicente Blasco Ibáñez, gained considerably more of the popular vote.
Output (English): Who became king in 1874?