Table: school_stats
Columns: year
district_wide
high_schools
middle_schools
elementary_schools
other_programs_adjustments

Question: Name the most high schools for 31851
SQL: SELECT MAX("high_schools") FROM school_stats WHERE "district_wide" = 31851

Question: Name the most district wide for 1639 other programs
SQL: SELECT MAX("district_wide") FROM school_stats WHERE "other_programs_adjustments" = 1639

Question: Name the total number of elementary schools for 31851
SQL: SELECT COUNT("elementary_schools") FROM school_stats WHERE "district_wide" = 31851

Question: Name the most middle schools for 2005-2006
SQL: SELECT MAX("middle_schools") FROM school_stats WHERE "year" = '2005-2006'