Database: customers_and_invoices
Question: Show order ids and the number of products in each order.
SQL:
SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id