Database: pets_1_minus_1_0
Question: What is the first name of every student who has a dog but does not have a cat?
SQL: select t1.fname , t1.age from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' )