-- 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 ] |
-- -- What are the names of all of Alice's friends of friends?

SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name  =  T2.name JOIN PersonFriend AS T3 ON T1.friend  =  T3.name JOIN PersonFriend AS T4 ON T3.friend  =  T4.name WHERE T2.name  =  'Alice' AND T4.name != 'Alice';