user
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Generate a query to find all customers who have made more than 50 purchases

### Input:
Given table: customer and sale.

### Response:
assistant
SELECT customer_name FROM customer c JOIN sale s ON c.customer_id = s.customer_id GROUP BY s.customer_id HAVING COUNT(s.customer_id) > 50;