Task: Text to Code
Input (English): Step 1: For each row in Person table, find the corresponding rows in PersonFriend table.
Step 2: find Person's name, age, job of the results of step 1 with largest value of year
Output (English): SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name ORDER BY T2.year Desc LIMIT 1