What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?
CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR) Question: What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? [/INST] SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12" </s>