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
When did 'San Jose State University' open?
assistant
SELECT Year FROM campuses WHERE campus = 'San Jose State University';
human
How many undergraduates were there in 'San Jose State University' in year 2000?
assistant
SELECT SUM( t1.undergraduate ) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2000 AND t2.campus = "San Jose State University" ;