human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
Show how many friends each person in the set has.
assistant
SELECT name , COUNT( * ) FROM personfriend GROUP BY name ;