user: ### NOW ANSWER:
Question: What is the lifespan of the Democratic party in New York, for which Terence J. Quinn is a representative?
Columns: ['Representative', 'Years', 'State', 'Party', 'Lifespan']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['John A. Quackenbush', '1889–1893', 'New York', 'Republican', '1828–1908']
SQL:

assistant: SELECT "Lifespan" FROM "Table" WHERE "Party" = 'Democratic' AND "State" = 'New York' AND "Representative" = 'Terence J. Quinn';