-- Database schema
| Person : name [ TEXT ] primary_key , age [ INT ] , city [ TEXT ] , gender [ TEXT ] , job [ TEXT ] | PersonFriend : name [ TEXT ] PersonFriend.name = Person.name , friend [ TEXT ] PersonFriend.friend = Person.name , year [ INT ] |
-- -- Find the name of persons who are friends with Alice for the shortest years.

SELECT name FROM PersonFriend WHERE friend =  'Alice' AND YEAR  =  (SELECT min(YEAR) FROM PersonFriend WHERE friend =  'Alice');