Show the location codes and the number of documents in each location.
CREATE TABLE Document_locations (location_code VARCHAR)
SELECT location_code, COUNT(*) FROM Document_locations GROUP BY location_code
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Document_locations (location_code VARCHAR) Question: Show the location codes and the number of documents in each location. [/INST] SELECT location_code, COUNT(*) FROM Document_locations GROUP BY location_code </s>