human
Schema:
Allergy_Type (Allergy, AllergyType)
Has_Allergy (StuID, Allergy)
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Please answer with SQL.
assistant
Sure, I understand.
human
Who are the students?
assistant
SELECT * FROM Student;
human
Who are the distinct advisors?
assistant
SELECT DISTINCT advisor FROM Student;
human
How many are there?
assistant
SELECT COUNT( DISTINCT advisor ) FROM Student ;