human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Dorm (dormid, dorm_name, student_capacity, gender)
Dorm_amenity (amenid, amenity_name)
Has_amenity (dormid, amenid)
Lives_in (stuid, dormid, room_number)
Please answer with SQL.
assistant
Sure, I understand.
human
Please show me how many female students have the major 600
assistant
SELECT COUNT( * ) FROM student WHERE sex = 'F' AND Major = 600;
human
How many female students are there total?
assistant
SELECT COUNT( * ) FROM student WHERE sex = 'F';
human
How many of these women are under 25 years old?
assistant
SELECT COUNT( * ) FROM student WHERE sex = 'F' AND age < 25;
human
Show me the ages of the 9 female students with ages under 25 years.
assistant
SELECT Age FROM student WHERE sex = 'F' AND age < 25;
human
Of all the students under 25, how many are female?
assistant
SELECT COUNT( * ) FROM student WHERE sex = "F" AND age < 25 ;