Show me the number of products that have been booked.
select product_id from products_booked
How many times has each of them been booked?
select product_id,count(*) from products_booked group by product_id
Show me the id of the product with 3 bookings.
select product_id from products_booked group by product_id having count(*) = 3