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

Question: which election year has henry wyndham as the 2nd member and walter barttelot as 1st member?
SQL: SELECT "election" FROM "members_of_parliament" WHERE "2nd_member"='henry wyndham' AND "1st_member"='walter barttelot';

Question: what election year has 2nd party conservative with 2nd member henry wyndham and 1st member walter barttelot?
SQL: SELECT "election" FROM "members_of_parliament" WHERE "2nd_party"='conservative' AND "2nd_member"='henry wyndham' AND "1st_member"='walter barttelot';

Question: what is the 1st pary when the second is whig?
SQL: SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_party"='whig';

Question: what is the election year with henry wyndham as 2nd member and walter barttelot as 1st?
SQL: SELECT "election" FROM "members_of_parliament" WHERE "2nd_member"='henry wyndham' AND "1st_member"='walter barttelot';