Question: What country sent the most legal immigrants to the city where Gotham is filmed from the region serving as the middle leg of the journey from England to the continent where Table Mountain is located to the Americas?

full_context: Document 1: New York City: New York is a prominent location for the American entertainment industry, with many films, television series, books, and other media being set there. As of 2012, New York City was the second largest center for filmmaking and television production in the United States, producing about 200 feature films annually, employing 130,000 individuals, and generating an estimated $7.1 billion in direct expenditures, and by volume, New York is the world leader in independent film production; one-third of all American independent films are produced in New York City. The Association of Independent Commercial Producers is also based in New York. In the first five months of 2014 alone, location filming for television pilots in New York City exceeded the record production levels for all of 2013, with New York surpassing Los Angeles as the top North American city for the same distinction during the 2013/2014 cycle.
Document 2: Gotham (TV series): In February 2014, it was reported that production would begin in New York City in March. Filming for the first season finished on March 24, 2015.
Document 3: Namibia: Compared to neighbouring countries, Namibia has a large degree of media freedom. Over the past years, the country usually ranked in the upper quarter of the Press Freedom Index of Reporters without Borders, reaching position 21 in 2010, being on par with Canada and the best-positioned African country. The African Media Barometer shows similarly positive results.[citation needed] However, as in other countries, there is still mentionable influence of representatives of state and economy on media in Namibia. In 2009, Namibia dropped to position 36 on the Press Freedom Index. In 2013, it was 19th. In 2014 it ranked 22nd
Document 4: Muslim world: Advances were made in irrigation and farming, using new technology such as the windmill. Crops such as almonds and citrus fruit were brought to Europe through al-Andalus, and sugar cultivation was gradually adopted by the Europeans. Arab merchants dominated trade in the Indian Ocean until the arrival of the Portuguese in the 16th century. Hormuz was an important center for this trade. There was also a dense network of trade routes in the Mediterranean, along which Muslim countries traded with each other and with European powers such as Venice, Genoa and Catalonia. The Silk Road crossing Central Asia passed through Muslim states between China and Europe.
Document 5: Mexico City: On the other hand, Mexico City is also home to large communities of expatriates and immigrants, most notably from the rest of North America (U.S. and Canada), from South America (mainly from Argentina and Colombia, but also from Brazil, Chile, Uruguay and Venezuela), from Central America and the Caribbean (mainly from Cuba, Guatemala, El Salvador, Haiti and Honduras); from Europe (mainly from Spain, Germany and Switzerland, but also from Czech Republic, Hungary, France, Italy, Ireland, the Netherlands, Poland and Romania), from the Middle East (mainly from Egypt, Lebanon and Syria); and recently from Asia-Pacific (mainly from China and South Korea). Historically since the era of New Spain, many Filipinos settled in the city and have become integrated in Mexican society. While no official figures have been reported, population estimates of each of these communities are quite significant.
Document 6: Cape of Good Hope: A common misconception is that the Cape of Good Hope is the southern tip of Africa. This misconception was based on the misbelief that the Cape was the dividing point between the Atlantic and Indian Oceans. Contemporary geographic knowledge instead states the southernmost point of Africa is Cape Agulhas about 150 kilometres (90 mi) to the east - southeast. The currents of the two oceans meet at the point where the warm - water Agulhas current meets the cold water Benguela current and turns back on itself. That oceanic meeting point fluctuates between Cape Agulhas and Cape Point (about 1.2 kilometres (0.75 mi) east of the Cape of Good Hope).
Document 7: Declaration of Table Mountain: The Declaration of Table Mountain is a statement on press freedom in Africa. The statement was issued by the World Association of Newspapers and News Publishers (WAN-IFRA) and World Editors Forum (WEF) at the 60th meeting of the World Newspaper Conference and 14th World Editors Forum Conference in Cape Town, South Africa, 3–6 June 2007. It is named after Table Mountain, at the southern tip of the African continent.
Document 8: Cape Town: Cape Town (Afrikaans: Kaapstad, (ˈkɑːpstat); Xhosa: iKapa) is a coastal city in South Africa. It is the second-most populous urban area in South Africa after Johannesburg. It is also the capital and primate city of the Western Cape province.
Document 9: New York City: Approximately 37% of the city's population is foreign born. In New York, no single country or region of origin dominates. The ten largest sources of foreign-born individuals in the city as of 2011 were the Dominican Republic, China, Mexico, Guyana, Jamaica, Ecuador, Haiti, India, Russia, and Trinidad and Tobago, while the Bangladeshi immigrant population has since become one of the fastest growing in the city, counting over 74,000 by 2013.
Document 10: New York City: The wider New York City metropolitan area, with over 20 million people, about 50% greater than the second-place Los Angeles metropolitan area in the United States, is also ethnically diverse. The New York region continues to be by far the leading metropolitan gateway for legal immigrants admitted into the United States, substantially exceeding the combined totals of Los Angeles and Miami, the next most popular gateway regions. It is home to the largest Jewish as well as Israeli communities outside Israel, with the Jewish population in the region numbering over 1.5 million in 2012 and including many diverse Jewish sects from around the Middle East and Eastern Europe. The metropolitan area is also home to 20% of the nation's Indian Americans and at least 20 Little India enclaves, as well as 15% of all Korean Americans and four Koreatowns; the largest Asian Indian population in the Western Hemisphere; the largest Russian American, Italian American, and African American populations; the largest Dominican American, Puerto Rican American, and South American and second-largest overall Hispanic population in the United States, numbering 4.8 million; and includes at least 6 established Chinatowns within New York City alone, with the urban agglomeration comprising a population of 779,269 overseas Chinese as of 2013 Census estimates, the largest outside of Asia.
Document 11: Atlantic slave trade: The Atlantic slave trade or transatlantic slave trade involved the transportation by slave traders of enslaved African people, mainly from Africa to the Americas, and then their sale there. The slave trade used mainly the triangular trade route and its Middle Passage, and existed from the 16th to the 19th centuries. The vast majority of those who were enslaved and transported in the transatlantic slave trade were Africans from central and western Africa, who had been sold by other West Africans to Western European slave traders (with a small number being captured directly by the slave traders in coastal raids), who brought them to the Americas. The South Atlantic and Caribbean economies especially were dependent on the supply of secure labour for the production of commodity crops, making goods and clothing to sell in Europe. This was crucial to those western European countries which, in the late 17th and 18th centuries, were vying with each other to create overseas empires.
Document 12: Dark (TV series): In February 2016, Netflix greenlit the series for a first season consisting of 10 episodes. It was revealed that each episode would be an hour long. Principal photography started on October 18, 2016, in and around Berlin and ended in March 2017. The series was filmed in 4K (Ultra HD) resolution.
Document 13: European colonisation of Southeast Asia: The spice trade was made possible by the maritime trade route. In 1498, the Portuguese navigator, Vasco da Gama, sailed round the Cape of Good Hope and opened up a sea route from Europe to India. Bringing home samples of exotic oriental products, da Gama greatly increased European interest in the new trade route and the new trade route quickly facilitated the expansion of trade. Eventually, the Dutch wrestled control of it from the Portuguese in the 17th century, and in the 18th century, the British gained control of it from the Dutch. Nevertheless, the spice route greatly increased trading activities, deepened the economic relations between Europe and Southeast Asia and as a result, more European merchants found their way to Southeast Asia.
Document 14: New York City: Ecuador, Colombia, Guyana, Peru, and Brazil were the top source countries from South America for legal immigrants to the New York City region in 2013; the Dominican Republic, Jamaica, Haiti, and Trinidad and Tobago in the Caribbean; Egypt, Ghana, and Nigeria from Africa; and El Salvador, Honduras, and Guatemala in Central America. Amidst a resurgence of Puerto Rican migration to New York City, this population had increased to approximately 1.3 million in the metropolitan area as of 2013.
Document 15: Triangular trade: Historically the particular routes were also shaped by the powerful influence of winds and currents during the age of sail. For example, from the main trading nations of Western Europe it was much easier to sail westwards after first going south of 30 N latitude and reaching the so - called ``trade winds ''; thus arriving in the Caribbean rather than going straight west to the North American mainland. Returning from North America, it is easiest to follow the Gulf Stream in a northeasterly direction using the westerlies. A similar triangle to this, called the volta do mar was already being used by the Portuguese, before Christopher Columbus' voyage, to sail to the Canary Islands and the Azores. Columbus simply expanded the triangle outwards, and his route became the main way for Europeans to reach, and return from, the Americas.
ground_truth: the Dominican Republic
sub_queries: Table Mountain >> continent Answer: Africa
the middle leg of the journey from england to Africa to the americas Answer: the Caribbean
where is the tv show gotham filmed at Answer: in New York City
What nation provided the most legal immigrants to in New York City in the #2 ? Answer: the Dominican Republic