human
Schema:
Person (name, age, city, gender, job)
PersonFriend (name, friend, year)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the length of the shortest friendship?
assistant
SELECT MIN( year ) FROM personfriend;
human
WHat is the minimum among friendships with Alice?
assistant
SELECT MIN( year ) FROM personfriend WHERE friend = "Alice" ;