Question: Show the order ids and the number of invoices for each order.
Schema: create table invoices (order_id varchar, PRIMARY KEY (order_id))
SQL: select order_id, count(*) from invoices group by order_id