You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_17641206_4 (duration VARCHAR, written_by VARCHAR)
system
How many episodes  of 30 minutes were written by John Sullivan?
user
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan"
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_17641206_4 (duration VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
How many episodes  of 30 minutes were written by John Sullivan?<|im_end|>
