CREATE TABLE PersonFriend (name VARCHAR2, friend VARCHAR2, year VARCHAR2)
CREATE TABLE Person (name VARCHAR2, age VARCHAR2, job VARCHAR2)

Find the name, age, and job title of persons who are friends with Alice for the longest years.
SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(year) FROM PersonFriend WHERE friend = 'Alice')
SELECT "T1"."name", "T1"."age", "T1"."job" FROM "Person" "T1" JOIN "PersonFriend" "T2" ON "T1"."name" = "T2"."name" AND "T2"."friend" = 'Alice' AND "T2"."year" = (SELECT MAX("year") FROM "PersonFriend" WHERE "friend" = 'Alice')