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_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
system
Who wrote the episode with 9.81 million US viewers?
user
SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "9.81"
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_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)<|im_end|>
<|im_start|>user
Who wrote the episode with 9.81 million US viewers?<|im_end|>
