CREATE TABLE "special_schools" (
  "school" text,
  "locality" text,
  "ages" text,
  "capacity" real,
  "ofsted" real
);

Question: Which Ages have a Capacity larger than 21, and an Ofsted of 106168?
SQL: SELECT "ages" FROM "special_schools" WHERE "capacity">21 AND "ofsted"=106168;

Question: Which Ages have an Ofsted larger than 106172, and a School of oakgrove school?
SQL: SELECT "ages" FROM "special_schools" WHERE "ofsted">106172 AND "school"='oakgrove school';

Question: Which Ofsted has a Capacity smaller than 56, and Ages of 11-16?
SQL: SELECT SUM("ofsted") FROM "special_schools" WHERE "capacity"<56 AND "ages"='11-16';

Question: Which Capacity has a School of windlehurst school, and an Ofsted smaller than 131889?
SQL: SELECT SUM("capacity") FROM "special_schools" WHERE "school"='windlehurst school' AND "ofsted"<131889;