SELECT DISTINCT T2.name ,  T2.friend ,  T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.age  >  (SELECT avg(age) FROM person)
Who has friends that are older than the average age? Print their friends and their ages as well
SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > ( SELECT avg ( age ) FROM person )
select distinct t2 . name , t2 . friend , t1 . age from person as t1 join personfriend as t2 on t1 . name = t2 . friend where t1 . age > ( select avg ( age ) from person )
Who has friends that are older than the average age ? Print their friends and their ages as well