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

Question: Which Ofsted has a Capacity of 1677?
SQL: SELECT "ofsted" FROM "secondary_schools" WHERE "capacity"=1677;

Question: Which Ofsted has a School of marple hall school, and a Capacity larger than 1711?
SQL: SELECT MIN("ofsted") FROM "secondary_schools" WHERE "school"='marple hall school' AND "capacity">1711;

Question: Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206?
SQL: SELECT "school" FROM "secondary_schools" WHERE "ages"='11-16' AND "ofsted"<106142 AND "capacity"=1206;

Question: What is heaton chapel's capacity?
SQL: SELECT MAX("capacity") FROM "secondary_schools" WHERE "locality"='heaton chapel';

Question: Which School has a Capacity larger than 730, and an Ofsted smaller than 106135, and a Locality of heaton mersey?
SQL: SELECT "school" FROM "secondary_schools" WHERE "capacity">730 AND "ofsted"<106135 AND "locality"='heaton mersey';