CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year INT)
CREATE TABLE Person (name VARCHAR, age INT, city TEXT, gender TEXT, job TEXT)

Who has friends that are older than the average age? Print their name and their ages as well using a bar chart, rank by the y axis in asc.
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person) ORDER BY T1.age
SELECT "T1"."name", "T1"."age" FROM "Person" AS "T1" JOIN "PersonFriend" AS "T2" ON "T1"."name" = "T2"."friend" WHERE "T1"."age" > (SELECT AVG("age") FROM "Person") ORDER BY "T1"."age" NULLS FIRST