How many accounts does each customer have? List the number and customer id.
CREATE TABLE Accounts (customer_id VARCHAR)
SELECT COUNT(*), customer_id FROM Accounts GROUP BY customer_id
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Accounts (customer_id VARCHAR) Question: How many accounts does each customer have? List the number and customer id. [/INST] SELECT COUNT(*), customer_id FROM Accounts GROUP BY customer_id </s>