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_21 (year VARCHAR, opponent VARCHAR)
system
How many years was the opponent petr korda?
user
SELECT COUNT(year) FROM table_name_21 WHERE opponent = "petr korda"
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_21 (year VARCHAR, opponent VARCHAR)<|im_end|>
<|im_start|>user
How many years was the opponent petr korda?<|im_end|>
