human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
How many persons are on the list?
assistant
SELECT COUNT( * ) FROM Person;
human
Who is the least aged person on the list?
assistant
SELECT name FROM Person ORDER by age LIMIT 1;
human
How many people whose age is greater 30 and job is engineer?
assistant
SELECT COUNT( * ) FROM Person WHERE age > 30 AND job = 'engineer';
human
How many female people are on the list?
assistant
SELECT COUNT( * ) FROM Person WHERE gender = "female" ;