Input: Somalis
In the Middle Ages, several powerful Somali empires dominated the regional trade including the Ajuran Sultanate, which excelled in hydraulic engineering and fortress building, the Sultanate of Adal, whose general Ahmad ibn Ibrahim al-Ghazi (Ahmed Gurey) was the first commander to use cannon warfare on the continent during Adal's conquest of the Ethiopian Empire, and the Sultanate of the Geledi, whose military dominance forced governors of the Omani empire north of the city of Lamu to pay tribute to the Somali Sultan Ahmed Yusuf.

What state employed Abmad ibn Ibrahim al-Ghazi?
Output: the Sultanate of Adal

Input: Saint Helena
St Helena has long been known for its high proportion of endemic birds and vascular plants. The highland areas contain most of the 400 endemic species recognised to date. Much of the island has been identified by BirdLife International as being important for bird conservation, especially the endemic Saint Helena plover or wirebird, and for seabirds breeding on the offshore islets and stacks, in the north-east and the south-west Important Bird Areas. On the basis of these endemics and an exceptional range of habitats, Saint Helena is on the United Kingdom's tentative list for future UNESCO World Heritage Sites.

What kind of plants are common on Saint Helena?
Output: vascular

Input: Muammar Gaddafi
A week after the implementation of the no-fly zone, NATO announced that it would be enforced. On 30 April a NATO airstrike killed Gaddafi's sixth son and three of his grandsons in Tripoli, though Gaddafi and his wife were unharmed. Western officials remained divided over whether Gaddafi was a legitimate military target under the U.N. Security Council resolution. U.S. Secretary of Defense Robert Gates said that NATO was "not targeting Gaddafi specifically" but that his command-and-control facilities were legitimate targetsincluding a facility inside his sprawling Tripoli compound that was hit with airstrikes on 25 April.

What organization killed Gaddafi's grandsons?
Output: NATO

Input: Portugal
As a result of the change in its status and the arrival of the Portuguese royal family, Brazilian administrative, civic, economical, military, educational, and scientific apparatus were expanded and highly modernized. Portuguese and their allied British troops fought against the French Invasion of Portugal and by 1815 the situation in Europe had cooled down sufficiently that Joao VI would have been able to return safely to Lisbon. However, the King of Portugal remained in Brazil until the Liberal Revolution of 1820, which started in Porto, demanded his return to Lisbon in 1821.

What provoked the modernization and expansion of the Brazilian administrative, civic, economical, military, educational, and scientific apparatus?
Output:
the change in its status and the arrival of the Portuguese royal family