How many churches have a wedding in year 2016?
CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR) Question: How many churches have a wedding in year 2016? [/INST] SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016 </s>