CREATE TABLE "electorate_results_for_the_new_zealand_g" (
  "electorate" text,
  "incumbent" text,
  "winner" text,
  "majority" real,
  "runner_up" text
);

Question: How many in the majority when Dan Sullivan won?
SQL: SELECT COUNT("majority") FROM "electorate_results_for_the_new_zealand_g" WHERE "winner"='dan sullivan';

Question: Who won with a majority more than 6,181 and J W Andrews as runner up?
SQL: SELECT "winner" FROM "electorate_results_for_the_new_zealand_g" WHERE "majority">'6,181' AND "runner_up"='j w andrews';