Question: In what year was slavery eliminated in the state where Raymond from Everybody Loves Raymond lives?

full_context: Document 1: 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 2: 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 3: 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 4: 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 5: 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 6: 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 7: 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 8: Everybody Loves Raymond: Everybody Loves Raymond is an American sitcom television series created by Philip Rosenthal that aired on CBS from September 13, 1996 to May 16, 2005, with a total of 210 episodes spanning over nine seasons. It was produced by Where's Lunch and Worldwide Pants, in association with HBO Independent Productions. The cast members are Ray Romano, Patricia Heaton, Brad Garrett, Doris Roberts, Peter Boyle, Madylin Sweeten, and Monica Horan. Most episodes of the nine season series were filmed in front of a live studio audience, with few exceptions.
Document 9: 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 10: List of Everybody Loves Raymond characters: Alexandra ``Ally ''Barone (154 episodes; played by Madylin Sweeten) -- Ray and Debra's only daughter. She is six years old at the beginning of the series, and is fourteen by the series finale. She was named for Romano's real - life daughter. In the beginning, she is somewhat mischievous and naughty much like her brothers, but becomes loyal and helpful by the end. However, she still occasionally fibs and answers back to her parents if she does n't get what she wants, such as a $250 silk dress which would only be worn once.
Document 11: Everybody Loves Raymond: The show is centered on the life of an Italian - American everyman named Raymond Barone, a sportswriter for Newsday living with his family in Long Island. Beleaguered, diffident and dryly sarcastic, Raymond takes few things seriously, making jokes in nearly every situation, no matter how troubling or serious. He often avoids responsibilities around the house and with his kids, leaving this to wife Debra.
Document 12: Italy (Everybody Loves Raymond): "Italy" is the two-part season five premiere of the American television sitcom "Everybody Loves Raymond". Constituting the 100th and 101st overall episodes of the series, they were written by the creator Philip Rosenthal and directed by Gary Halvorson. In this episode of the show, which revolves around the life of Italian-American "Newsday" sportswriter Raymond Barone and his oddball family, his parents, Marie and Frank, announce that they're all going to Italy to visit the former's cousin Colletta, and everyone is excited to go except Raymond. Meanwhile, during the trip, Ray's brother Robert is attracted to a woman named Stefania, and tries to get past her father Signore Fogagnolo to meet her. With part one originally airing on October 2, 2000 and the concluding half on October 9, both on CBS, the episode has earned positive reviews from critics and received a Writers Guild of America Award.
Document 13: List of Everybody Loves Raymond characters: Marco Fogagnolo (6 episodes; played by David Proval) -- The intimidating and threatening Italian father of Stefania, who takes over Nemo's Pizza after the family moves to America, jokingly implying that he ``did away with ''Nemo. Although he dislikes Robert, he befriends Frank and Marie but the two end up fighting for his friendship.
Document 14: 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 15: 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.
ground_truth: 1827
sub_queries: where does raymond live in everybody loves raymond 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