Question: Which Ofsted has a Capacity of 1677?
SQL: SELECT "Ofsted" FROM "2-16931017-2" WHERE "Capacity" = 1677.0;

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

Question: Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206?
SQL: SELECT "School" FROM "2-16931017-2" WHERE "Ages" = '11-16' AND "Ofsted" < 106142.0 AND "Capacity" = 1206.0;

Question: What is Heaton Chapel's capacity?
SQL: SELECT MAX("Capacity") FROM "2-16931017-2" 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 "2-16931017-2" WHERE "Capacity" > 730.0 AND "Ofsted" < 106135.0 AND "Locality" = 'Heaton Mersey';