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

Question: Name the authority for coed gender and chanel college
SQL: SELECT "authority" FROM "masterton_district" WHERE "gender"='coed' AND "name"='chanel college';

Question: Name the average decile for state authority and area of fernridge
SQL: SELECT AVG("decile") FROM "masterton_district" WHERE "authority"='state' AND "area"='fernridge';