How many games has each stadium held?
CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR)
SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR) Question: How many games has each stadium held? [/INST] SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id </s>