CREATE TABLE "members_of_parliament" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);

Question: Which election has a 1st Member of constituency abolished?
SQL: SELECT "election" FROM "members_of_parliament" WHERE "1st_member"='constituency abolished';

Question: Which 1st Party has an Election of 1849 by-election?
SQL: SELECT "1st_party" FROM "members_of_parliament" WHERE "election"='1849 by-election';

Question: Which 1st Party has a 2nd Party of conservative, and a 1st Member of william wither bramston beach?
SQL: SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_party"='conservative' AND "1st_member"='william wither bramston beach';

Question: Which 2nd Party has a 1st Member of william wither bramston beach?
SQL: SELECT "2nd_party" FROM "members_of_parliament" WHERE "1st_member"='william wither bramston beach';

Question: Which 2nd Party has an Election of 1837?
SQL: SELECT "2nd_party" FROM "members_of_parliament" WHERE "election"='1837';

Question: Which 1st Party has a 1st Member of william wither bramston beach?
SQL: SELECT "1st_party" FROM "members_of_parliament" WHERE "1st_member"='william wither bramston beach';