Database: bakery_1
Question: What is the last name of the customers who shopped at the bakery more than 10 times?
SQL:
SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId  =  T2.id GROUP BY T2.id HAVING count(*)  >  10