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
How many CSU campuses are there?
assistant
SELECT count(*) FROM campuses
human
Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.
assistant
SELECT campus FROM campuses WHERE LOCATION = 'Northridge' AND county = 'Los Angeles' UNION SELECT campus FROM campuses WHERE LOCATION = 'San Francisco' AND county = 'San Francisco'
human
What are the names of all campuses located at Chico?
assistant
SELECT campus FROM campuses WHERE LOCATION = 'Chico'
human
Which university is in Los Angeles county and opened after 1950?
assistant
SELECT campus FROM campuses WHERE county = 'Los Angeles' AND YEAR > 1950
human
Report the name of all campuses in Los Angeles county.
assistant
SELECT campus FROM campuses WHERE county = 'Los Angeles'
human
How many campuses are there in Los Angeles county?
assistant
SELECT COUNT( * ) FROM campuses WHERE county = "Los Angeles" ;