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_24850630_4 (distance VARCHAR, race VARCHAR)
system
What is the distance of the Mooresbridge Stakes race? 
user
SELECT distance FROM table_24850630_4 WHERE race = "Mooresbridge Stakes"
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_24850630_4 (distance VARCHAR, race VARCHAR)<|im_end|>
<|im_start|>user
What is the distance of the Mooresbridge Stakes race? <|im_end|>
