human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
what is the name of all males?
assistant
SELECT name FROM Person WHERE gender = 'male';
human
what is the age of Bob?
assistant
SELECT age FROM Person WHERE name = 'Bob';
human
who is a doctor?
assistant
SELECT name FROM Person WHERE job = "doctor" ;