Input: Article: The city remained in the hands of Christian troops until 1102, when the Almoravids retook the city and restored the Muslim religion. Although the self-styled 'Emperor of All Spain', Alfonso VI of Leon and Castile, drove them from the city, he was not strong enough to hold it. The Christians set it afire before abandoning it, and the Almoravid Masdali took possession on 5 May 1109. The event was commemorated in a poem by Ibn Khafaja in which he thanked Yusuf ibn Tashfin for the city's liberation.The declining power of the Almoravids coincided with the rise of a new dynasty in North Africa, the Almohads, who seized control of the peninsula from the year 1145, although their entry into Valencia was deterred by Ibn Mardanis, King of Valencia and Murcia until 1171, at which time the city finally fell to the North Africans. The two Muslim dynasties would rule Valencia for more than a century.

Now answer this question: Who called himself the Emperor of All Spain?

Output: Alfonso VI of Leon and Castile

Input: Article: Around 1890, a political movement developed in the United States to mandate private executions. Several states enacted laws which required executions to be conducted within a "wall" or "enclosure" to "exclude public view." For example, in 1919, the Missouri legislature adopted a statute (L.1919, p. 781) which required, "the sentence of death should be executed within the county jail, if convenient, and otherwise within an enclosure near the jail." The Missouri law permitted the local sheriff to distribute passes to individuals (usually local citizens) whom he believed should witness the hanging, but the sheriffs for various reasons sometimes denied passes to individuals who wanted to watch. Missouri executions conducted after 1919 were not "public" because they were conducted behind closed walls, and the general public was not permitted to attend.

Now answer this question: In what year did Missouri pass a law stating that executions should be inside of or near a jail?

Output: 1919

Input: Article: In the late 1940s, during the last days of the Dominion of Newfoundland (at the time a dominion-dependency in the Commonwealth and independent of Canada), there was mainstream support, although not majority, for Newfoundland to form an economic union with the United States, thanks to the efforts of the Economic Union Party and significant U.S. investment in Newfoundland stemming from the U.S.-British alliance in World War II. The movement ultimately failed when, in a 1948 referendum, voters narrowly chose to confederate with Canada (the Economic Union Party supported an independent "responsible government" that they would then push toward their goals).

Now answer this question: What did the Economic Union Party support?

Output:
an independent "responsible government"