Question: In what year was slavery eliminated in the state containing the island where the novel Great Gatsby took place?

full_context: Document 1: North Carolina: Besides slaves, there were a number of free people of color in the state. Most were descended from free African Americans who had migrated along with neighbors from Virginia during the 18th century. The majority were the descendants of unions in the working classes between white women, indentured servants or free, and African men, indentured, slave or free. After the Revolution, Quakers and Mennonites worked to persuade slaveholders to free their slaves. Some were inspired by their efforts and the language of the Revolution to arrange for manumission of their slaves. The number of free people of color rose markedly in the first couple of decades after the Revolution.
Document 2: The Great Gatsby: The Great Gatsby is a 1925 novel written by American author F. Scott Fitzgerald that follows a cast of characters living in the fictional town of West and East Egg on prosperous Long Island in the summer of 1922. The story primarily concerns the young and mysterious millionaire Jay Gatsby and his quixotic passion and obsession for the beautiful former debutante Daisy Buchanan. Considered to be Fitzgerald's magnum opus, The Great Gatsby explores themes of decadence, idealism, resistance to change, social upheaval, and excess, creating a portrait of the Jazz Age or the Roaring Twenties that has been described as a cautionary tale regarding the American Dream.
Document 3: Multiracial Americans: After the American Revolutionary War, the number and proportion of free people of color increased markedly in the North and the South as slaves were freed. Most northern states abolished slavery, sometimes, like New York, in programs of gradual emancipation that took more than two decades to be completed. The last slaves in New York were not freed until 1827. In connection with the Second Great Awakening, Quaker and Methodist preachers in the South urged slaveholders to free their slaves. Revolutionary ideals led many men to free their slaves, some by deed and others by will, so that from 1782 to 1810, the percentage of free people of color rose from less than one percent to nearly 10 percent of blacks in the South.
Document 4: Gardiners Island: Gardiner's Island is a small island in the Town of East Hampton, New York, in Eastern Suffolk County. It is located in Gardiner's Bay between the two peninsulas at the East end of Long Island. It is 6 miles (9.7 km) long, 3 miles (4.8 km) wide and has 27 miles (43 km) of coastline. The island has been owned by the Gardiner family and their descendants since 1639 when Lion Gardiner purchased it from the Montaukett chief Wyandanch. It is one of the larger privately owned islands in the United States, and is slightly smaller than Naushon Island in Massachusetts, owned by the Forbes Family.
Document 5: New York City: New York grew in importance as a trading port while under British rule in the early 1700s. It also became a center of slavery, with 42% of households holding slaves by 1730, more than any other city other than Charleston, South Carolina. Most slaveholders held a few or several domestic slaves, but others hired them out to work at labor. Slavery became integrally tied to New York's economy through the labor of slaves throughout the port, and the banks and shipping tied to the South. Discovery of the African Burying Ground in the 1990s, during construction of a new federal courthouse near Foley Square, revealed that tens of thousands of Africans had been buried in the area in the colonial years.
Document 6: New York (state): Both the Dutch and the British imported African slaves as laborers to the city and colony; New York had the second - highest population of slaves after Charleston, South Carolina. Slavery was extensive in New York City and some agricultural areas. The state passed a law for the gradual abolition of slavery soon after the Revolutionary War, but the last slave in New York was not freed until 1827.
Document 7: New York City: Under New York State's gradual abolition act of 1799, children of slave mothers were born to be eventually liberated but were held in indentured servitude until their mid-to-late twenties. Together with slaves freed by their masters after the Revolutionary War and escaped slaves, a significant free-black population gradually developed in Manhattan. Under such influential United States founders as Alexander Hamilton and John Jay, the New York Manumission Society worked for abolition and established the African Free School to educate black children. It was not until 1827 that slavery was completely abolished in the state, and free blacks struggled afterward with discrimination. New York interracial abolitionist activism continued; among its leaders were graduates of the African Free School. The city's black population reached more than 16,000 in 1840.
Document 8: Staten Island: Staten Island / ˌstætən ˈaɪlənd / is the southernmost and westernmost of the five boroughs of New York City in the U.S. state of New York. Located in the southwest portion of the city, Staten Island is the southernmost part of both the city and state of New York, with Conference House Park located at the southern tip of the island. The borough is separated from New Jersey by the Arthur Kill and the Kill Van Kull, and from the rest of New York by New York Bay. With a 2017 Census -- estimated population of 479,458 Staten Island is the least populated of the boroughs but is the third - largest in land area at 58.5 sq mi (152 km). The borough is coextensive with Richmond County and until 1975 was referred to as the Borough of Richmond. Its flag was later changed to reflect this. Staten Island has sometimes been called ``the forgotten borough ''by inhabitants who feel neglected by the city government.
Document 9: Long Island (proposed state): Long Island, a large island directly south of New England, has made attempts in the past to secede from New York and become its own state. Mentions of Long Island secession range from 1896 to 2010. The proposed 51st state has also speculated the combination of Nassau and Suffolk counties into one county in order to reduce costs.
Document 10: The Great Gatsby: The Great Gatsby is a 1925 novel written by American author F. Scott Fitzgerald that follows a cast of characters living in the fictional town of West Egg on prosperous Long Island in the summer of 1922. The story primarily concerns the young and mysterious millionaire Jay Gatsby and his quixotic passion and obsession for the beautiful former debutante Daisy Buchanan. Considered to be Fitzgerald's magnum opus, The Great Gatsby explores themes of decadence, idealism, resistance to change, social upheaval, and excess, creating a portrait of the Jazz Age or the Roaring Twenties that has been described as a cautionary tale regarding the American Dream.
Document 11: The Great Gatsby (2013 film): The Great Gatsby is a 2013 romance drama film based on F. Scott Fitzgerald's 1925 novel of the same name. The film was co-written and directed by Baz Luhrmann and stars Leonardo DiCaprio as the eponymous Jay Gatsby, with Tobey Maguire, Carey Mulligan, Joel Edgerton, Isla Fisher and Elizabeth Debicki. Production began in 2011 and took place in Australia, with a $105 million net production budget. The film follows the life and times of millionaire Jay Gatsby and his neighbor Nick Carraway (Tobey Maguire), who recounts his encounter with Gatsby at the height of the Roaring Twenties on Long Island.
Document 12: The Great Gatsby: The Great Gatsby is a 1925 novel written by American author F. Scott Fitzgerald that follows a cast of characters living in the fictional town of West and East Egg on prosperous Long Island in the summer of 1922. The story primarily concerns the young and mysterious millionaire Jay Gatsby and his quixotic passion and obsession for the beautiful former debutante Daisy Buchanan. Considered to be Fitzgerald's magnum opus, The Great Gatsby explores themes of decadence, idealism, resistance to change, social upheaval, and excess, creating a portrait of the Roaring Twenties that has been described as a cautionary tale regarding the American Dream.
Document 13: Liberty Island: According to the United States Census Bureau, the island has a land area of 59,558 square meters, or 14.717 acres, which is the property of the federal government. Liberty Island is located in the Upper New York Bay within the waters of Jersey City, Hudson County, New Jersey. It is one of the islands that are part of the borough of Manhattan in New York. The historical developments which led to this construction created the rare situation of an exclave of one state, New York, being situated in another, New Jersey.
Document 14: Long Island: Long Island Native name: Paumanok Location of Long Island in New York Geography Location Atlantic Ocean Coordinates 40 ° 48 ′ N 73 ° 18 ′ W ﻿ / ﻿ 40.8 ° N 73.3 ° W ﻿ / 40.8; - 73.3 Area 1,401 sq mi (3,630 km) Administration United States State New York Demographics Demonym Long Islander Population 7,869,820 (2017) Pop. density 5,617.3 / sq mi (2,168.85 / km) Ethnic groups 54.7% White, 20.5% Hispanic or Latino of any race, 20.4% Black, 12.3% Asian, 8.8% other races, 3.2% from two or more races, 0.49% Native American, and 0.05% Pacific Islander
Document 15: The Great Gatsby (2013 film): The Great Gatsby is a 2013 romance drama film based on F. Scott Fitzgerald's 1925 novel of the same name. The film was co-written and directed by Baz Luhrmann and stars Leonardo DiCaprio as the eponymous Jay Gatsby, with Tobey Maguire, Carey Mulligan, Joel Edgerton, Isla Fisher and Elizabeth Debicki. Production began in 2011 and took place in Australia, with a $190 million budget. The film follows the life and times of millionaire Jay Gatsby and his neighbor Nick Carraway (Tobey Maguire), who recounts his encounter with Gatsby at the height of the Roaring Twenties in New York state.
ground_truth: 1827
sub_queries: where does the novel the great gatsby take place Answer: Long Island
Long Island >> located in the administrative territorial entity Answer: New York
In what year did the state of New York eliminate slavery? Answer: 1827