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 have allergies?
assistant
SELECT * FROM Has_allergy;
human
Who has a cat allergy?
assistant
SELECT * FROM Has_allergy WHERE Allergy = 'Cat';
human
How many are there?
assistant
SELECT COUNT( * ) FROM Has_allergy WHERE Allergy = "Cat" ;