Input: Heian period
The Fujiwara rulers failed to maintain adequate police forces, which left robbers free to prey on travelers. This is implicitly illustrated in novels by the terror that night travel inspired in the main characters. The shōen system enabled the accumulation of wealth by an aristocratic elite; the economic surplus can be linked to the cultural developments of the Heian period and the "pursuit of arts". The major Buddhist temples in Heian-kyō and Nara also made use of the shōen. The establishment of branches rurally and integration of some Shinto shrines within these temple networks reflects a greater "organizational dynamism".

Buddhist temples in which two cities made use of the shoen system?
Output: Heian-kyō and Nara


Input: Article: Israel is considered the most advanced country in Southwest Asia and the Middle East in economic and industrial development. Israel's quality university education and the establishment of a highly motivated and educated populace is largely responsible for spurring the country's high technology boom and rapid economic development. In 2010, it joined the OECD. The country is ranked 3rd in the region and 38th worldwide on the World Bank's Ease of Doing Business Index as well as in the World Economic Forum's Global Competitiveness Report. It has the second-largest number of startup companies in the world (after the United States) and the largest number of NASDAQ-listed companies outside North America.

Now answer this question: Who is considered the most advanced country in Southwest Asia?

Output: Israel


Article: The history of the Ottoman Empire during World War I began with the Ottoman engagement in the Middle Eastern theatre. There were several important Ottoman victories in the early years of the war, such as the Battle of Gallipoli and the Siege of Kut. The Arab Revolt which began in 1916 turned the tide against the Ottomans on the Middle Eastern front, where they initially seemed to have the upper hand during the first two years of the war. The Armistice of Mudros was signed on 30 October 1918, and set the partition of the Ottoman Empire under the terms of the Treaty of Sèvres. This treaty, as designed in the conference of London, allowed the Sultan to retain his position and title. The occupation of Constantinople and İzmir led to the establishment of a Turkish national movement, which won the Turkish War of Independence (1919–22) under the leadership of Mustafa Kemal (later given the surname "Atatürk"). The sultanate was abolished on 1 November 1922, and the last sultan, Mehmed VI (reigned 1918–22), left the country on 17 November 1922. The caliphate was abolished on 3 March 1924.

Question: The Battle of Gallipoli and the Siege of Kut resulted in what?
Ans: Ottoman victories


Here is a question about this article: Heartwood is often visually distinct from the living sapwood, and can be distinguished in a cross-section where the boundary will tend to follow the growth rings. For example, it is sometimes much darker. However, other processes such as decay or insect invasion can also discolor wood, even in woody plants that do not form heartwood, which may lead to confusion.
What is the answer to this question: In what part of a tree's cross-section is heartwood visible?
****
So... growth rings


The problem: Answer a question about this article:
The total number of Greeks living outside Greece and Cyprus today is a contentious issue. Where Census figures are available, they show around 3 million Greeks outside Greece and Cyprus. Estimates provided by the SAE - World Council of Hellenes Abroad put the figure at around 7 million worldwide. According to George Prevelakis of Sorbonne University, the number is closer to just below 5 million. Integration, intermarriage, and loss of the Greek language influence the self-identification of the Omogeneia. Important centres of the New Greek Diaspora today are London, New York, Melbourne and Toronto. In 2010, the Hellenic Parliament introduced a law that enables Diaspora Greeks in Greece to vote in the elections of the Greek state. This law was later repealed in early 2014.
How many Greeks do they believe would be an accurate number for census numbers ?
****
The answer: World Council of Hellenes Abroad put the figure at around 7 million worldwide


The problem: Answer a question about this article:
After World War II, eastern European countries such as the Soviet Union, Poland, Czechoslovakia, Hungary, Romania and Yugoslavia expelled the Germans from their territories. Many of those had inhabited these lands for centuries, developing a unique culture. Germans were also forced to leave the former eastern territories of Germany, which were annexed by Poland (Silesia, Pomerania, parts of Brandenburg and southern part of East Prussia) and the Soviet Union (northern part of East Prussia). Between 12 and 16,5 million ethnic Germans and German citizens were expelled westwards to allied-occupied Germany.
Where were Germans that were inhabiting other lands expelled to?
****
The answer:
allied-occupied Germany