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
What are the different sex categories for students?
assistant
SELECT DISTINCT sex FROM Student;
human
How many are there for each category?
assistant
SELECT COUNT( * ) , sex FROM Student GROUP BY sex ;