How many episodes were written by Gregg Mettler?
CREATE TABLE table_29436238_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_29436238_1 WHERE written_by = "Gregg Mettler"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29436238_1 (no_in_series VARCHAR, written_by VARCHAR) Question: How many episodes were written by Gregg Mettler? [/INST] SELECT COUNT(no_in_series) FROM table_29436238_1 WHERE written_by = "Gregg Mettler" </s>