Question: In what year did the state of New York pass a law to free the slaves?
Sentence: 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.
Answer in sentence: yes