This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Passage: The control of Tenasserim coast  in the early 18th century was divided between Burma and Siam, with the Burmese controlling down to Tavoy  and the Siamese controlling the rest. Throughout history, both kingdoms had claimed the entire coast--, and control had changed hands several times. The Burmese Pagan Dynasty controlled the entire coast until 1287. Throughout 14th and 16th centuries, Siamese kingdoms  controlled much of the coast, up to just south of present-day Mawlamyaing. In the mid-16th century, the Burmese under Toungoo kings Tabinshwehti and Bayinnaung tried to regain the coast, first failing in 1548, and finally succeeding in 1564 when they conquered all of Siam for the first time. The Siamese revolted in 1584, and under their king Naresuan regained the lower coast by 1593 and the entire coast by 1594. The Burmese retook the upper coast down to Tavoy in 1615 but failed to recover the rest. This arrangement lasted until 1740 . During this period, Mergui  on the Andaman Sea was the primary port of Siam through which its trade with India and the West was conducted. 
Question: How many years passed between the  Burmese under Toungoo kings Tabinshwehti and Bayinnaung trying to regain the coast and failing and when they finally succeeded? 
Answer type: Number 
16.

Passage: Like many former mill towns, Huddersfield has a higher than average number of residents from Minority group. The white population makes up 81% of the population comparing to 91.3% for England as a whole (2001). The largest ethnic minority group are those who have described themselves as being Asian people or British Asian originating from the Indian sub-continent (India, Pakistan, Bangladesh and Sri Lanka) with 10,837, or 8.9% (compared to 1.4% for England as a whole). An ethnicity summary of the towns 121,620 population is 98,454 (81.0%) white, 15,072 (12.4%) Asian or British Asian, 4,328 (3.6%) Black or Black British, 328 (0.3%), 259 (0.2%) Other and 3,131 (2.6%) Mixed. In 2011, Huddersfield had a population of 162,949 and was 75.8% White (which includes people from Ireland, Mainland Europe and other places), 72.1% White British (or 117,548 people), 14.9% Asian (24,201 people) and 4.2% Black (6,822 people). 
Question: How many percent less of Huddersfield residents were white, compared to England as a whole? 
Answer type: Number 
10.3.

Passage: While Polish-Lithuanian army concentrated in Podolia, in deep south of the enormous Commonwealth, on August 19, 1621, a Swedish army landed near Pärnu , carried by a fleet of 148 vessels . Gustav Adolf had 14,700 infantry, 3,150 cavalry and 375 cannons. Swedes immediately marched towards Riga, and besieged it on 29 August. The capital of Livonia was defended by a garrison of 300 soldiers, plus 3,700 armed residents. Lithuanian Field Hetman Krzysztof Radziwiłł had only 1,500 soldiers at his disposal, as most units were in Podolia and Red Ruthenia. Riga capitulated on September 25, after a month siege and three assaults. On October 2, Swedes captured the fortress of Dunamunde. The invaders, marching through marshes and forests to avoid Lithuanian cavalry, entered the Duchy of Courland and Semigallia, capturing its capital, Mitau without resistance. Swedes then tried to capture the fortress of Koknese, but failed to do so, after a skirmish with Lithuanian cavalry of Aleksander Gosiewski. In early January 1622, the Swedes captured Valmiera, together with several smaller Livonian castles. Meanwhile, the forces under Hetman Radziwill grew to 3 000, which enabled the Lithuanians to seal several Swedish garrisons. On January 7, Radziwiłł recaptured Mitau, but for lack of artillery, he failed to seize its castle, whose garrison did not capitulate until July 6. A few weeks later, in late July 1622, main Swedish forces reached Mittau, and a prolonged battle ensued. Since the battle turned into a stalemate, on August 10, 1622, both sides signed a truce, which in 1623 was prolonged until March 1625. During the negotiations, envoys of Gustav Adolf suggested a Swedish-Lithuanian union. 
Question: How many soldiers and residents in total defended the capital of Livonia? 
Answer type: Number 

4000.

