Question: When did the state that Tito visited when he saw the organization that employs Sinha Basnayake, become a free state?

full_context: Document 1: Ibrahim Shihata: At the age of 20, Ibrahim Shihata graduated with a BA in law from Cairo University Law School at the top of his class. He originally planned to continue his education in the United States, but then received an offer from the Conseil d’Etat to work as a legal advisor in the Ministry of Health.
Document 2: 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 3: Sinha Basnayake: Son of the prominent lawyer Hema Henry Basnayake, QC; he was educated at the Royal College, Colombo and graduated with a first class in law from the University of Oxford. After qualifying as a barrister he joined the UN as a Legal Officer in the International Trade Law Branch of the Office of Legal Affairs, eventually becoming its Director. Appointed as a President's Counsel by the government of Sri Lanka, he has served in many committees of the UN.
Document 4: Josip Broz Tito: On 1 January 1967, Yugoslavia was the first communist country to open its borders to all foreign visitors and abolish visa requirements. In the same year Tito became active in promoting a peaceful resolution of the Arab–Israeli conflict. His plan called for Arabs to recognize the state of Israel in exchange for territories Israel gained.
Document 5: Josip Broz Tito: Tito visited India from December 22, 1954 through January 8, 1955. After his return, he removed many restrictions on churches and spiritual institutions in Yugoslavia.
Document 6: Shirantha Goonatilake: Shirantha Goonatilake completed his education at the Royal College, Colombo and followed in the footsteps of his father and elder brother to join the Sri Lanka Air Force.
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: 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 9: 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 10: Josip Broz Tito: Tito's visits to the United States avoided most of the Northeast due to large minorities of Yugoslav emigrants bitter about communism in Yugoslavia. Security for the state visits was usually high to keep him away from protesters, who would frequently burn the Yugoslav flag. During a visit to the United Nations in the late 1970s emigrants shouted "Tito murderer" outside his New York hotel, for which he protested to United States authorities.
Document 11: Satyendra Prasanna Sinha, 1st Baron Sinha: Satyendra Prasanna Sinha, 1st Baron Sinha, KCSI, PC, KC, (24 March 1863 – 4 March 1928) was a prominent lawyer and statesman in British India. He was the first Governor of Bihar and Orissa, first Indian Advocate-General of Bengal, first Indian to become a member of the Viceroy's executive Council and the first Indian to become a member of the British ministry. He is sometimes also referred as Satyendra Prasanno Sinha or Satyendra Prasad Sinha.
Document 12: Josip Broz Tito: Yugoslavia had a liberal travel policy permitting foreigners to freely travel through the country and its citizens to travel worldwide, whereas it was limited by most Communist countries. A number[quantify] of Yugoslav citizens worked throughout Western Europe. Tito met many world leaders during his rule, such as Soviet rulers Joseph Stalin, Nikita Khrushchev and Leonid Brezhnev; Egypt's Gamal Abdel Nasser, Indian politicians Jawaharlal Nehru and Indira Gandhi; British Prime Ministers Winston Churchill, James Callaghan and Margaret Thatcher; U.S. Presidents Dwight D. Eisenhower, John F. Kennedy, Richard Nixon, Gerald Ford and Jimmy Carter; other political leaders, dignitaries and heads of state that Tito met at least once in his lifetime included Che Guevara, Fidel Castro, Yasser Arafat, Willy Brandt, Helmut Schmidt, Georges Pompidou, Queen Elizabeth II, Hua Guofeng, Kim Il Sung, Sukarno, Sheikh Mujibur Rahman, Suharto, Idi Amin, Haile Selassie, Kenneth Kaunda, Gaddafi, Erich Honecker, Nicolae Ceaușescu, János Kádár and Urho Kekkonen. He also met numerous celebrities.
Document 13: Josip Broz Tito: One significant consequence of the tension arising between Yugoslavia and Soviet Union, was that Tito fought Yugoslav Stalinists with Stalin's methods. In other words, Aleksandar Ranković and the State Security Service (UBDA) employed the same inhumane methods against their opponents as Stalin did in the Soviet Union against his. Not every person accused of a political crime was convicted and nobody was sentenced to death for his or her pro-Soviet feelings. However this repression, which lasted until 1956, was marked by significant violations of human rights.
Document 14: Lucky de Chickera: Lucky de Chickera was educated at Royal College Colombo, being appointed the head prefectof Royal in 1965, and winning the most coveted Dornhorst Memorial Prize for outstanding merit in the same year. He went on to a successful career in the Corporate Private sector of the Country, that spanned 43 years of his working career until retiring as the Managing Director/CEO of Lanka Walltile PLC. Lucky was also an outstanding sports person representing his college in Rugby Football, and then going on to represent the Colombo school sides in 1963 and '64 and the Sri Lanka schools sides in both years. He continued his Rugby career into the Premier Rugby tournament of the Country by playing regularly for the CH&FC RUGBY CLUB one of the leading sides in Colombo from 1968 to 1971. He played for the Colombo clubs in 1968 and was a Sri Lanka trialist in 1968 and '69. He got married in 1969, and fathered three sons, who all went on to play representative rugby at school and junior country level.
Document 15: 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.
ground_truth: 1827
sub_queries: Sinha Basnayake >> employer Answer: UN
What American state did Tito visit when he saw the UN ? Answer: New York
when did New York become a free state Answer: 1827