Table: us_reps_past
Columns: representative
years
state
party
lifespan

Question: Which party has Peter A. Quinn as a representative?
SQL: SELECT "party" FROM us_reps_past WHERE "representative" = 'peter a. quinn'

Question: Which state does Jimmy Quillen represent?
SQL: SELECT "state" FROM us_reps_past WHERE "representative" = 'jimmy quillen'

Question: What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?
SQL: SELECT "lifespan" FROM us_reps_past WHERE "party" = 'democratic' AND "state" = 'new york' AND "representative" = 'terence j. quinn'