Input: Queen (band)
In 1975, the band left for a world tour with each member in Zandra Rhodes-created costumes and accompanied with banks of lights and effects. They toured the US as headliners, and played in Canada for the first time. In September, after an acromonious split with Trident, the band negotiated themselves out of their Trident Studios contract and searched for new management. One of the options they considered was an offer from Led Zeppelin's manager, Peter Grant. Grant wanted them to sign with Led Zeppelin's own production company, Swan Song Records. The band found the contract unacceptable and instead contacted Elton John's manager, John Reid, who accepted the position.

Queen had a bitter split with what management company in 1975?
Output: Trident Studios

Input: Heian period
When Emperor Kammu moved the capital to Heian-kyo (Kyoto), which remained the imperial capital for the next 1,000 years, he did so not only to strengthen imperial authority but also to improve his seat of government geopolitically. Nara was abandoned after only 70 years in part due to the ascendancy of Dokyo and the encroaching secular power of the Buddhist institutions there. Kyoto had good river access to the sea and could be reached by land routes from the eastern provinces. The early Heian period (784967) continued Nara culture; the Heian capital was patterned on the Chinese Tang capital at Chang'an, as was Nara, but on a larger scale than Nara. Kammu endeavoured to improve the Tang-style administrative system which was in use. Known as the ritsuryo, this system attempted to recreate the Tang imperium in Japan, despite the "tremendous differences in the levels of development between the two countries". Despite the decline of the Taika-Taiho reforms, imperial government was vigorous during the early Heian period. Indeed, Kammu's avoidance of drastic reform decreased the intensity of political struggles, and he became recognized as one of Japan's most forceful emperors.

Nara was the former capital for how many years?
Output: 70

Input: Portugal
Portugal (Portuguese: [putua]), officially the Portuguese Republic (Portuguese: Republica Portuguesa), is a country on the Iberian Peninsula, in Southwestern Europe. It is the westernmost country of mainland Europe, being bordered by the Atlantic Ocean to the west and south and by Spain to the north and east. The PortugalSpain border is 1,214 km (754 mi) long and considered the longest uninterrupted border within the European Union. The republic also includes the Atlantic archipelagos of the Azores and Madeira, both autonomous regions with their own regional governments.

Where is Portugal located?
Output: Iberian Peninsula, in Southwestern Europe

Input: History of science
The Romantic Movement of the early 19th century reshaped science by opening up new pursuits unexpected in the classical approaches of the Enlightenment. Major breakthroughs came in biology, especially in Darwin's theory of evolution, as well as physics (electromagnetism), mathematics (non-Euclidean geometry, group theory) and chemistry (organic chemistry). The decline of Romanticism occurred because a new movement, Positivism, began to take hold of the ideals of the intellectuals after 1840 and lasted until about 1880.

What caused Romanticism to end?
Output:
Positivism