human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
how many female persons are in the table
assistant
SELECT COUNT( * ) FROM Person WHERE gender = 'female';
human
please tell me alice friend name
assistant
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Alice';
human
what is the age of bob
assistant
SELECT age FROM Person WHERE name = "Bob" ;