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_name_51 (attendance INTEGER, home VARCHAR)
system
What was the attendance of the match with motagua as the home team?
user
SELECT AVG(attendance) FROM table_name_51 WHERE home = "motagua"
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_name_51 (attendance INTEGER, home VARCHAR)<|im_end|>
<|im_start|>user
What was the attendance of the match with motagua as the home team?<|im_end|>
