Table: schools_stockport
Columns: school
locality
ages
capacity
ofsted

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

Question: Which Ofsted has a School of marple hall school, and a Capacity larger than 1711?
SQL: SELECT MIN("ofsted") FROM schools_stockport 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 schools_stockport WHERE "ages" = '11-16' AND "ofsted" < 106142 AND "capacity" = 1206

Question: What is heaton chapel's capacity?
SQL: SELECT MAX("capacity") FROM schools_stockport 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 schools_stockport WHERE "capacity" > 730 AND "ofsted" < 106135 AND "locality" = 'heaton mersey'