Input: Valencia
The economy began to recover in the early 1960s, and the city experienced explosive population growth through immigration spurred by the jobs created with the implementation of major urban projects and infrastructure improvements. With the advent of democracy in Spain, the ancient kingdom of Valencia was established as a new autonomous entity, the Valencian Community, the Statute of Autonomy of 1982 designating Valencia as its capital. On the night of 23 February 1981, shortly after Antonio Tejero had stormed Congress, the Captain General of the Third Military Region, Jaime Milans del Bosch, rose up in Valencia, put tanks on the streets, declared a state of emergency and tried to convince other senior military figures to support the coup. After the televised message of King Juan Carlos I, those in the military who had not yet aligned themselves decided to remain loyal to the government, and the coup failed. Despite this lack of support, Milans del Bosch only surrendered at 5 a.m. on the next day, 24 February.

What law made Valencia the capital of its region?
Output: Statute of Autonomy

Input: Portugal
In the second decade of the 21st century the Portuguese economy suffered its most severe recession since the 1970s resulting in the country having to be bailed out by the European Commission, European Central Bank and International Monetary Fund. The bailout, agreed to in 2011, required Portugal to enter into a range of austerity measures in exchange for funding support of €78 billion. In May 2014 the country exited the bailout but reaffirmed its commitment to maintaining its reformist momentum. At the time of exiting the bailout the economy had contracted by 0.7% in the first quarter of 2014, however unemployment, while still high had fallen to 15.3 percent.

When did Portugal exit the bailout?
Output: May 2014

Input: The Sun (United Kingdom)
The Daily Star had been launched in 1978 by Express Newspaper, and by 1981 had begun to affect sales of The Sun. Bingo was introduced as a marketing tool and a 2p drop in cover price removed the Daily Star's competitive advantage opening a new circulation battle which resulted in The Sun neutralising the threat of the new paper. The new editor of The Sun, Kelvin MacKenzie, took up his post in 1981 just after these developments, and "changed the British tabloid concept more profoundly than [Larry] Lamb did", according to Bruce Page, MacKenzie The paper became "more outrageous, opinionated and irreverent than anything ever produced in Britain".

By what year had The Daily Star started impacting The Sun's sales?
Output: 1981

Input: Szlachta
On April 26, 1496 King John I Albert granted the Privilege of Piotrków (Polish: "Przywilej piotrkowski", "konstytucja piotrkowska" or "statuty piotrkowskie"), increasing the nobility's feudal power over serfs. It bound the peasant to the land, as only one son (not the eldest) was permitted to leave the village; townsfolk (Polish: "mieszczaństwo") were prohibited from owning land; and positions in the Church hierarchy could be given only to nobles.

Who was allowed to leave the village?
Output:
one son (not the eldest)