Question: How big is the country that sent the most legal immigrants to Gotham's filming location from the place where Andy sailed to in The Office?

full_context: Document 1: 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 2: 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 3: 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 4: Abby Lockhart: At the end of the thirteenth season, Abby and Luka plan to honeymoon in Hawaii. However, the night before they are due to depart, Luka receives a phone call from Croatia informing him that his father is ill, so the honeymoon is put on hold until Luka can return from his urgent trip abroad. After Luka's departure, Abby has a tough time with the stern new ER Chief Kevin Moretti, who plans to mold the department into a more efficient and professional work environment, but Moretti quickly tells Abby he is very impressed with her work. Despite this, she seems to dislike him more than many of the other residents. In season 14, Abby is struggling to deal with Luka's absence, raise Joe and work at the ER; in ``Gravity '', Joe is injured after falling off a jungle gym at the playground and Abby ends up falling back into drinking at the episode's end. She approaches Dr. Janet Coburn (the O.B. Chief) who appears to have been her AA sponsor in the past. Abby's drinking problem continues to escalate, and she realizes how bad it is in`` Blackout'' when she shows up drunk to a party in honor of Pratt and Morris passing their boards. Abby finds herself waking up at 3am in Moretti's apartment realizing, after sobering up at the airport when trying to find a flight to Croatia to see Luka, that she slept with him.
Document 5: The Boat (The Office): Andy Bernard (Ed Helms) learns that his father took all the family money and fled to Argentina with his mistress. Left to pick up the pieces, Andy sells off family heirlooms, and is upset that he has to sell the family boat for lack of any other means for his mother to support herself. Erin Hannon (Ellie Kemper) convinces him that before he sells the boat, they should take it out for one last sunset cruise, and they drive to Stamford, Connecticut, where the boat is docked. Andy starts to hoist the main sail, but is stopped by a broker who is to sail it to the Caribbean for the buyer. With Erin's encouragement, Andy decides to take the boat to the Caribbean himself. He then finds his drunken brother Walter (Josh Groban) passed out in the liquor closet. Walter comes to and tells Andy he wanted to get the first relapse out of the way before checking into rehab. Andy invites him on the trip, saying they both need family time together and leaves, thanking Erin for her encouragement. Erin says to the camera that she would have loved to go with him if he asked. Back in the office that evening, Pete Miller (Jake Lacy) asks Erin to join him for drinks, and she accepts.
Document 6: Geography of Puerto Rico: The geography of Puerto Rico consists of an archipelago located between the Caribbean Sea and the North Atlantic Ocean, east of the Dominican Republic and west of the Virgin Islands. The main island of Puerto Rico is the smallest and most eastern of the Greater Antilles. With an area of 3,515 square miles (9,104 km), it is the third largest island in the United States and the 82nd largest island in the world. Various smaller islands and cays, including Vieques, Culebra, Mona, Desecheo, and Caja de Muertos comprise the remainder of the archipelago with only Culebra and Vieques being inhabited year - round. Mona is uninhabited through large parts of the year except for employees of the Puerto Rico Department of Natural Resources.
Document 7: 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 8: 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 9: The Office (American season 9): The ninth season largely focuses on the relationship between Jim (John Krasinski) and Pam Halpert (Jenna Fischer). After Jim decides to follow his dream and start a sports marketing company in Philadelphia, Pam begins to worry about moving, and the couple's relationship experiences stress. Meanwhile, Andy Bernard (Ed Helms) abandons the office for a three - month boating trip, and eventually quits his job to pursue his dream of becoming a star, although he soon becomes famous for a viral video. Dwight Schrute (Rainn Wilson) is finally promoted to regional manager. The documentary airs, and a year later, the members of the office gather for Dwight and Angela's marriage as well as a final round of interviews.
Document 10: Dominican Republic: The Dominican Republic (Spanish: República Dominicana (reˈpuβliˌka ðoˌminiˈkana)) is a country located in the island of Hispaniola, in the Greater Antilles archipelago of the Caribbean region. It occupies the eastern five - eighths of the island, which it shares with the nation of Haiti, making Hispaniola one of two Caribbean islands, along with Saint Martin, that are shared by two countries. The Dominican Republic is the second - largest Caribbean nation by area (after Cuba) at 48,445 square kilometers (18,705 sq mi), and third by population with approximately 10 million people, of which approximately three million live in the metropolitan area of Santo Domingo, the capital city.
Document 11: Degrassi: Next Class (season 4): This season along with season three were renewed in April 2016. Production on the season officially began a month prior when casting calls for two new leads were released. Filming commenced in May 2016 and finished in August of the same year. The season premiered on July 3, 2017 on Family Channel's' F2N 'teen block, and streamed internationally on Netflix on July 7, 2017. On F2N, it will run for two weeks and use the telenovela format. Ahead of the premiere on F2N, Family Channel released all 10 episodes on June 30, 2017, on the Family Channel App at midnight.
Document 12: History of the Dominican Republic: The recorded history of the Dominican Republic began when the Genoa - born navigator Christopher Columbus, working for the Spanish Crown, happened upon a large island in the region of the western Atlantic Ocean that later came to be known as the Caribbean. It was inhabited by the Taíno, an Arawakan people, who variously called their island Ayiti, Bohio, or Quisqueya (Kiskeya). Columbus promptly claimed the island for the Spanish Crown, naming it La Isla Española (``the Spanish Island ''), later Latinized to Hispaniola. What would become the Dominican Republic was the Spanish Captaincy General of Santo Domingo until 1821 except for a time as a French colony from 1795 to 1809. It was then part of a unified Hispaniola with Haiti from 1822 until 1844. In 1844, Dominican independence was proclaimed and the republic, which was often known as Santo Domingo until the early 20th century, maintained its independence except for a short Spanish occupation from 1861 to 1865 and occupation by the United States from 1916 to 1924.
Document 13: 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 14: 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 15: List of Caribbean islands by area: Rank Island Area (km2) Area (sq mi) Country or Countries Cuba 105,806 40,852 Cuba Hispaniola 76,479 29,529 Haiti and Dominican Republic Jamaica 11,188 4320 Jamaica Puerto Rico 8,896 3435 Puerto Rico 5 Trinidad 4,827 1864 Trinidad and Tobago 6 North Andros Island 3,439 1328 Bahamas 7 Isla de la Juventud 2,237 864 Cuba 8 Great Inagua Island 1,543 596 Bahamas 9 South Andros Island 1,447 559 Bahamas 10 Grand Bahama Island 1,373 530 Bahamas 11 Great Abaco Island 1,144 442 Bahamas 12 Martinique 1,128 436 Martinique 13 Isla Margarita 1,020 394 Venezuela
ground_truth: 18,705
sub_queries: where did andy sail to in the office 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 #1 ? Answer: the Dominican Republic
what is the size of the Dominican Republic in square miles Answer: 18,705