human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
How many people does Bob consider a friend?
assistant
SELECT COUNT( * ) FROM personfriend WHERE name = 'Bob';
human
How long have they been friends?
assistant
SELECT friend , year FROM personfriend WHERE name = 'Bob';
human
Only show the name.
assistant
SELECT friend FROM PersonFriend WHERE name = "Bob" ;