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

Question: What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?
SQL: SELECT COUNT("roll") FROM "waitaki_district" WHERE "decile"=7 AND "authority"='state' AND "area"='macraes flat';

Question: What year has a decile more than 6, in the Waikouaiti area?
SQL: SELECT "years" FROM "waitaki_district" WHERE "decile">6 AND "area"='waikouaiti';