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

Question: Name the sum of roll for morrinsville school
SQL: SELECT SUM("roll") FROM "matamata_piako_district" WHERE "name"='morrinsville school';

Question: Name the authority for morrinsville college
SQL: SELECT "authority" FROM "matamata_piako_district" WHERE "name"='morrinsville college';

Question: Name the years when decile was less than 7 for waitoa school
SQL: SELECT "years" FROM "matamata_piako_district" WHERE "decile"<7 AND "name"='waitoa school';

Question: Name the total number of roll for state authority and stanley avenue school with decile more than 5
SQL: SELECT COUNT("roll") FROM "matamata_piako_district" WHERE "authority"='state' AND "name"='stanley avenue school' AND "decile">5;