Input: Article: New Haven is repeatedly referenced by Nick Carraway in F. Scott Fitzgerald's literary classic The Great Gatsby, as well as by fellow fictional Yale alumnus C. Montgomery Burns, a character from The Simpsons television show. A fictional native of New Haven is Alex Welch from the novella, The Odd Saga of the American and a Curious Icelandic Flock. The TV show Gilmore Girls is set (but not filmed) in New Haven and at Yale University, as are scenes in the film The Sisterhood of the Traveling Pants 2 (2008).

Now answer this question: Who is the fictional Yale University alumnus, and ostensible former resident of New Haven, featured on The Simpsons?

Output: C. Montgomery Burns

Input: Article: The indirect method of applying tesserae is often used for very large projects, projects with repetitive elements or for areas needing site specific shapes. Tiles are applied face-down to a backing paper using an adhesive, and later transferred onto walls, floors or craft projects. This method is most useful for extremely large projects as it gives the maker time to rework areas, allows the cementing of the tiles to the backing panel to be carried out quickly in one operation and helps ensure that the front surfaces of the mosaic tiles and mosaic pieces are flat and in the same plane on the front, even when using tiles and pieces of differing thicknesses. Mosaic murals, benches and tabletops are some of the items usually made using the indirect method, as it results in a smoother and more even surface.

Now answer this question: The indirect method also helped for projects with what kinds of areas?

Output: repetitive

Input: Article: 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.

Now answer this question: In what year did the state of New York pass a law to free the slaves?

Output:
1799