CREATE TABLE "changes_during_term" (
  "by_election" real,
  "electorate" text,
  "date" text,
  "incumbent" text,
  "reason" text,
  "winner" text
);

Question: When arthur collins is the winner what is the reason?
SQL: SELECT "reason" FROM "changes_during_term" WHERE "winner"='Arthur Collins';

Question: When ihaia tainui is the incumbent what is the date?
SQL: SELECT "date" FROM "changes_during_term" WHERE "incumbent"='Ihaia Tainui';

Question: When rangitikei is the electorate who is the winner?
SQL: SELECT "winner" FROM "changes_during_term" WHERE "electorate"='Rangitikei';

Question: When waikaia is the electorate what is the highest by-election?
SQL: SELECT MAX("by_election") FROM "changes_during_term" WHERE "electorate"='Waikaia';

Question: When 1881 is the by-election and death is the reason who is the incumbent?
SQL: SELECT "incumbent" FROM "changes_during_term" WHERE "reason"='Death' AND "by_election"=1881;