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

Question: Which area has a Decile of 9, and a Roll of 31?
SQL: SELECT "area" FROM "selwyn_district" WHERE "decile"=9 AND "roll"=31;

Question: How many deciles have Years of 9–13?
SQL: SELECT COUNT("decile") FROM "selwyn_district" WHERE "years"='9–13';

Question: What is the name with a Decile less than 10, and a Roll of 297?
SQL: SELECT "name" FROM "selwyn_district" WHERE "decile"<10 AND "roll"=297;

Question: Which name has a Roll larger than 297, and Years of 7–13?
SQL: SELECT "name" FROM "selwyn_district" WHERE "roll">297 AND "years"='7–13';

Question: Which years have a Name of ladbrooks school?
SQL: SELECT "years" FROM "selwyn_district" WHERE "name"='ladbrooks school';

Question: What is the total of the roll with a Decile of 8, and an Area of hororata?
SQL: SELECT SUM("roll") FROM "selwyn_district" WHERE "decile"=8 AND "area"='hororata';