Task: Text to Code
Input (English): SQL: SELECT name , age FROM Person WHERE age > ( SELECT Avg ( age ) FROM Person )
Feedback: Replace name of person table with friend of person friend .
Output (English): 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)