Show order ids and the number of products in each order.
CREATE TABLE Order_items (order_id VARCHAR, product_id VARCHAR)
SELECT order_id, COUNT(DISTINCT product_id) FROM Order_items GROUP BY order_id
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Order_items (order_id VARCHAR, product_id VARCHAR) Question: Show order ids and the number of products in each order. [/INST] SELECT order_id, COUNT(DISTINCT product_id) FROM Order_items GROUP BY order_id </s>