Task: Text to Code
Input (English): What are the different first names and ages of the students who do have pets?
Output (English): SELECT DISTINCT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid