CREATE TABLE personfriend (name TEXT, friend TEXT, year DECIMAL)
CREATE TABLE person (name TEXT, age DECIMAL, city TEXT, gender TEXT, job TEXT)

What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?
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" AS "T1" JOIN "personfriend" AS "T2" ON "T1"."name" = "T2"."name" AND "T2"."friend" = 'Alice' AND "T2"."year" = (SELECT MAX("year") FROM "personfriend" WHERE "friend" = 'Alice')