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_27547668_4 (directed_by VARCHAR, written_by VARCHAR)
system
what is the total number of films directy and written by john callaghan?
user
SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = "John Callaghan"
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_27547668_4 (directed_by VARCHAR, written_by VARCHAR)<|im_end|>
<|im_start|>user
what is the total number of films directy and written by john callaghan?<|im_end|>
