human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
How many people are friends with Dan?
assistant
SELECT COUNT( * ) FROM personfriend WHERE friend = 'Dan';
human
How about for Alice?
assistant
SELECT COUNT( * ) FROM personfriend WHERE friend = "Alice" ;