CREATE TABLE "thames_coromandel_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);

Question: What is the average decile for te puru school?
SQL: SELECT AVG("decile") FROM "thames_coromandel_district" WHERE "name"='te puru school';

Question: What is the total decile with an Area of whitianga, and a Roll smaller than 835?
SQL: SELECT SUM("decile") FROM "thames_coromandel_district" WHERE "area"='whitianga' AND "roll"<835;

Question: Which name has an Area of kennedy bay?
SQL: SELECT "name" FROM "thames_coromandel_district" WHERE "area"='kennedy bay';

Question: Which years have a Decile larger than 4, and an Area of thames?
SQL: SELECT "years" FROM "thames_coromandel_district" WHERE "decile">4 AND "area"='thames';

Question: Which Authority has a Decile smaller than 6, and an Area of opoutere?
SQL: SELECT "authority" FROM "thames_coromandel_district" WHERE "decile"<6 AND "area"='opoutere';

Question: Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school?
SQL: SELECT "gender" FROM "thames_coromandel_district" WHERE "years"='1–8' AND "authority"='state' AND "roll"<184 AND "name"='matatoki school';