Table: schools_stockport
Columns: school
locality
ages
capacity
ofsted

Question: Which Ages have a Capacity larger than 21, and an Ofsted of 106168?
SQL: SELECT "ages" FROM schools_stockport 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 schools_stockport 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 schools_stockport 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 schools_stockport WHERE "school" = 'windlehurst school' AND "ofsted" < 131889