Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)?
CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR)
SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR) Question: Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? [/INST] SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm" </s>