human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
How many females are under age 40?
assistant
SELECT COUNT( * ) FROM person WHERE gender = 'female' AND age < 40;
human
How many males do we have data for?
assistant
SELECT COUNT( * ) FROM person WHERE gender = "male" ;