Database: pets_1_minus_1_0
Question: What is the last name of the student who has a cat that is 3 years old?
SQL: select t1.lname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pet_age = 3 and t2.pettype = 'cat'