In this task, you're expected to write answers to questions involving multiple references to the same entity. The answer to the question should be unambiguous and a phrase in the paragraph. Most questions can have only one correct answer.

Ex Input:
Passage: The Tang dynasty was largely a period of progress and stability in the first half of the dynasty's rule, until the devastating An Lushan Rebellion (755-763) and the decline of central authority in the later half of the dynasty. Like the previous Sui dynasty, the Tang dynasty maintained a civil-service system by recruiting scholar-officials through standardized examinations and recommendations to office.  The rise of regional military governors known as jiedushi during the 9th century undermined this civil order.  Chinese culture flourished and further matured during the Tang era; it is traditionally considered the greatest age for Chinese poetry.  Two of China's most famous poets, Li Bai and Du Fu, belonged to this age, as did many famous painters such as Han Gan, Zhang Xuan, and Zhou Fang.  Scholars of this period compiled a rich variety of historical literature, as well as encyclopedias and geographical works. The adoption of the title Tängri Qaghan by the Tang Emperor Taizong in addition to his title as emperor was eastern Asia's first "simultaneous kingship".Many notable innovations occurred under the Tang, including the development of woodblock printing.  Buddhism became a major influence in Chinese culture, with native Chinese sects gaining prominence.  However, in the 840s the Emperor Wuzong of Tang enacted policies to persecute Buddhism, which subsequently declined in influence. Although the dynasty and central government had gone into decline by the 9th century, art and culture continued to flourish. The weakened central government largely withdrew from managing the economy, but the country's mercantile affairs stayed intact and commercial trade continued to thrive regardless. However, agrarian rebellions in the latter half of the 9th century resulted in damaging atrocities such as the Guangzhou massacre of 878–879. 
Question: Under what dynasty were the jiedushi created?

Ex Output:
Tang dynasty.


Ex Input:
Passage: Seattle is a charter city, with a mayor–council form of government. From 1911 to 2013, Seattle's nine city councillors were elected at large, rather than by geographic subdivisions. For the 2015 election, this changed to a hybrid system of seven district members and two at-large members as a result of a ballot measure passed on November 5, 2013. The only other elected offices are the city attorney and Municipal Court judges. All city offices are officially non-partisan.Like some other parts of the United States, government and laws are also run by a series of ballot initiatives (allowing citizens to pass or reject laws), referenda (allowing citizens to approve or reject legislation already passed), and propositions (allowing specific government agencies to propose new laws or tax increases directly to the people).
Jenny Durkan was elected as mayor in the 2017 mayoral election and took office on November 28, 2017. The mayor's office also includes two deputy mayors, appointed to advise the mayor on policies; As of 2017, the city's deputy mayors are Michael Fong and Shefali Ranganathan.Seattle's political culture is very liberal and progressive for the United States, with over 80% of the population voting for the Democratic Party. All precincts in Seattle voted for Democratic Party candidate Barack Obama in the 2012 presidential election. In partisan elections for the Washington State Legislature and United States Congress, nearly all elections are won by Democrats. Although local elections are nonpartisan, most of the city's elected officials are known to be Democrats.
In 1926, Seattle became the first major American city to elect a female mayor, Bertha Knight Landes. It has also elected an openly gay mayor, Ed Murray, and a third-party socialist councillor, Kshama Sawant. For the first time in United States history, an openly gay black woman was elected to public office when Sherry Harris was elected as a Seattle city councillor in 1991. The majority of the city council is female.Federally, Seattle is split between two congressional districts. Most of the city is in Washington's 7th congressional district, represented by Democrat Pramila Jayapal, the first Indian-American woman elected to Congress. She succeeded 28-year incumbent and fellow Democrat Jim McDermott. Part of southwestern Seattle is in the 9th District, represented by Democrat Adam Smith. 
Question: What is the full name of the representative of the 9th congressional district that includes the city that elected Michael Fong and Shefali Ranganathan as deputy mayors in 2017?

Ex Output:
Adam Smith.


Ex Input:
Passage: The Ottomans were employed as mercenaries by the Byzantines in the 1340s but later became invaders in their own right. Sultan Murad I took Adrianople from the Byzantines in 1362; Sofia fell in 1382, followed by Shumen in 1388. The Ottomans completed their conquest of Bulgarian lands in 1393 when Tarnovo was sacked after a three-month siege and the Battle of Nicopolis which brought about the fall of the Vidin Tsardom in 1396. Sozopol was the last Bulgarian settlement to fall, in 1453. The Bulgarian nobility was subsequently eliminated and the peasantry was enserfed to Ottoman masters, while much of the educated clergy fled to other countries.Christians were considered an inferior class of people under the Ottoman system. Bulgarians were subjected to heavy taxes (including devshirme, or blood tax), their culture was suppressed, and they experienced partial Islamisation. Ottoman authorities established a religious administrative community called the Rum Millet, which governed all Orthodox Christians regardless of their ethnicity. Most of the local population then gradually lost its distinct national consciousness, identifying only by its faith. The clergy remaining in some isolated monasteries kept their ethnic identity alive, enabling its survival in remote rural areas, and in the militant Catholic community in the northwest of the country.As Ottoman power began to wane, Habsburg Austria and Russia saw Bulgarian Christians as potential allies. The Austrians first backed an uprising in Tarnovo in 1598, then a second one in 1686, the Chiprovtsi Uprising in 1688 and finally Karposh's Rebellion in 1689. The Russian Empire also asserted itself as a protector of Christians in Ottoman lands with the Treaty of Küçük Kaynarca in 1774.
The Western European Enlightenment in the 18th century influenced the initiation of a national awakening of Bulgaria. It restored national consciousness and provided an ideological basis for the liberation struggle, resulting in the 1876 April Uprising. Up to 30,000 Bulgarians were killed as Ottoman authorities put down the rebellion. The massacres prompted the Great Powers to take action. They convened the Constantinople Conference in 1876, but their decisions were rejected by the Ottomans. This allowed the Russian Empire to seek a military solution without risking confrontation with other Great Powers, as had happened in the Crimean War. In 1877 Russia declared war on the Ottomans and defeated them with the help of Bulgarian rebels, particularly during the crucial Battle of Shipka Pass which secured Russian control over the main road to Constantinople. 
Question: What people took Sofia in 1382?

Ex Output:

Ottomans.