Question: When did the state where the The Room Where It Happens is set, become free of slavery?

full_context: Document 1: 1800 United States presidential election: At the end of a long and bitter campaign, Jefferson and Burr each won 73 electoral votes, Adams won 65 electoral votes, and Pinckney won 64 electoral votes. The Federalists swept New England, the Democratic - Republicans dominated the South, and the parties split the Mid-Atlantic states of New York, New Jersey, and Pennsylvania. The Democratic - Republicans' failure to execute their plan to award Jefferson one more vote than Burr resulted in a tie, which necessitated a contingent election in the House of Representatives. Under the terms laid out in the Constitution, the outgoing House of Representatives chose between Jefferson and Burr. Each state delegation cast one vote, and a victory in the contingent election required one candidate to win a majority of the state delegations. Neither Burr nor Jefferson were able to win on the first 35 ballots of the contingent election, as most Federalist Congressmen backed Burr and all Democratic - Republican Congressmen backed Jefferson. Hamilton personally favored Jefferson over Burr, and he convinced several Federalists to switch their support to Jefferson, giving Jefferson a victory on the 36th ballot of the contingent election. The result of this election was affected by the three - fifths clause of the United States Constitution; historians such as Garry Wills have noted that had slaves not been counted for the purposes of congressional apportionment, Adams would have won the electoral vote.
Document 2: 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 3: Charleston, South Carolina: By 1840, the Market Hall and Sheds, where fresh meat and produce were brought daily, became a hub of commercial activity. The slave trade also depended on the port of Charleston, where ships could be unloaded and the slaves bought and sold. The legal importation of African slaves had ended in 1808, although smuggling was significant. However, the domestic trade was booming. More than one million slaves were transported from the Upper South to the Deep South in the antebellum years, as cotton plantations were widely developed through what became known as the Black Belt. Many slaves were transported in the coastwise slave trade, with slave ships stopping at ports such as Charleston.
Document 4: History of Washington, D.C.: The United States capital was originally located in Philadelphia, beginning with the First and Second Continental Congress, followed by the Congress of the Confederation upon gaining independence. In June 1783, a mob of angry soldiers converged upon Independence Hall to demand payment for their service during the American Revolutionary War. Congress requested that John Dickinson, the governor of Pennsylvania, call up the militia to defend Congress from attacks by the protesters. In what became known as the Pennsylvania Mutiny of 1783, Dickinson sympathized with the protesters and refused to remove them from Philadelphia. As a result, Congress was forced to flee to Princeton, New Jersey, on June 21, 1783. Dickinson's failure to protect the institutions of the national government was discussed at the Philadelphia Convention in 1787. The delegates therefore agreed in Article One, Section 8, of the United States Constitution to give the Congress the power:
Document 5: Federalist Party: Federalist policies called for a national bank, tariffs and good relations with Great Britain as expressed in the Jay Treaty negotiated in 1794. Hamilton developed the concept of implied powers and successfully argued the adoption of that interpretation of the United States Constitution. Their political opponents, the Democratic - Republicans led by Thomas Jefferson, denounced most of the Federalist policies, especially the bank and implied powers; and vehemently attacked the Jay Treaty as a sell - out of republican values to the British monarchy. The Jay Treaty passed and the Federalists won most of the major legislative battles in the 1790s. They held a strong base in the nation's cities and in New England. After the Democratic - Republicans, whose base was in the rural South, won the hard - fought presidential election of 1800, the Federalists never returned to power. They recovered some strength by their intense opposition to the War of 1812, but they practically vanished during the Era of Good Feelings that followed the end of the war in 1815.
Document 6: Black people: In the Colonial America of 1619, John Rolfe used negars in describing the slaves who were captured from West Africa and then shipped to the Virginia colony. Later American English spellings, neger and neggar, prevailed in a northern colony, New York under the Dutch, and in metropolitan Philadelphia's Moravian and Pennsylvania Dutch communities; the African Burial Ground in New York City originally was known by the Dutch name "Begraafplaats van de Neger" (Cemetery of the Negro); an early US occurrence of neger in Rhode Island, dates from 1625. Thomas Jefferson also used the term "black" in his Notes on the State of Virginia in allusion to the slave populations.
Document 7: Congress Hall: Philadelphia served as the capital of the United States both during and immediately after the American Revolutionary War. Independence Hall, located next door, served as the meeting place of the Continental Congress until the Pennsylvania Mutiny in June 1783. The failure of the Pennsylvania government to protect Congress from a mob of angry mutineers caused the representatives to withdraw to Princeton, New Jersey. The national capital then moved to Annapolis, Maryland in November 1783, then to Trenton, New Jersey in November 1784 before finally moving to New York City in January 1785. State delegates did not return to Independence Hall in Philadelphia until the United States Constitutional Convention in 1787; however, remained the official capital even during the convention. Designed by architect Samuel Lewis, Congress Hall was originally built to serve as the Philadelphia County Courthouse; construction began in 1787 and was completed two years later.
Document 8: New Netherland: The inhabitants of New Netherland were Native Americans, Europeans, and Africans, the last chiefly imported as enslaved laborers. By 1664, at the time of transfer to England, the colony had an estimated population of between 7,000 and 8,000 people, half of whom were not of Dutch descent.
Document 9: 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 10: Political party: Although the Founding Fathers of the United States did not originally intend for American politics to be partisan, early political controversies in the 1790s over the extent of federal government powers saw the emergence of two proto-political parties- the Federalist Party and the Democratic-Republican Party, which were championed by Framers Alexander Hamilton and James Madison, respectively. However, a consensus reached on these issues ended party politics in 1816 for a decade, a period commonly known as the Era of Good Feelings.
Document 11: The Room Where It Happens: Aaron Burr encounters then Secretary Alexander Hamilton in New York, and they discuss the legacy of the deceased General Mercer, pondering what their legacy will be. Their discussion is interrupted as Hamilton is ushered to a secret dinner table bargain, in which he, Thomas Jefferson, and James Madison agree upon an unprecedented political compromise. The capital city of their new nation will be moved to the Potomac River, politically and geographically placing it in the South. In exchange for this, the Democratic - Republican Party will support Hamilton's financial system in Congress, facilitating its passage into legislation. Burr enviously comments on how the American people, and more specifically himself, had no agency in this decision. He then decides to rectify this by running for political office in an effort to be in the eponymous room. This leads him to run as a Democratic - Republican against Philip Schuyler, Hamilton's father - in - law, for the position of United States Senator for New York.
Document 12: United States Capitol: The United States Congress was established upon ratification of the United States Constitution and formally began on March 4, 1789. New York City remained home to Congress until July 1790, when the Residence Act was passed to pave the way for a permanent capital. The decision to locate the capital was contentious, but Alexander Hamilton helped broker a compromise in which the federal government would take on war debt incurred during the American Revolutionary War, in exchange for support from northern states for locating the capital along the Potomac River. As part of the legislation, Philadelphia was chosen as a temporary capital for ten years (until December 1800), until the nation's capital in Washington, D.C., would be ready.
Document 13: 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 14: New York City: In 1785, the assembly of the Congress of the Confederation made New York the national capital shortly after the war. New York was the last capital of the U.S. under the Articles of Confederation and the first capital under the Constitution of the United States. In 1789, the first President of the United States, George Washington, was inaugurated; the first United States Congress and the Supreme Court of the United States each assembled for the first time, and the United States Bill of Rights was drafted, all at Federal Hall on Wall Street. By 1790, New York had surpassed Philadelphia as the largest city in the United States.
Document 15: 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.
ground_truth: 1827
sub_queries: where is the room where it happened located Answer: New York
when did New York become a free state Answer: 1827