human
Schema:
Campuses (Id, Campus, Location, County, Year)
csu_fees (Campus, Year, CampusFee)
degrees (Year, Campus, Degrees)
discipline_enrollments (Campus, Discipline, Year, Undergraduate, Graduate)
enrollments (Campus, Year, TotalEnrollment_AY, FTE_AY)
faculty (Campus, Year, Faculty)
Please answer with SQL.
assistant
Sure, I understand.
human
hi I was wondering how many counties you have information for?
assistant
SELECT COUNT( DISTINCT T1.county ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus;
human
how many schools are in Orange county?
assistant
SELECT COUNT( * ) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = "Orange" ;