CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);

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

Question: Which state does Jimmy Quillen represent?
SQL: SELECT "state" FROM "external_links" 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 "external_links" WHERE "party"='democratic' AND "state"='new york' AND "representative"='terence j. quinn';