What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft?
CREATE TABLE table_name_9 (to_iran INTEGER, damaged VARCHAR, survived VARCHAR, aircraft VARCHAR)
SELECT AVG(to_iran) FROM table_name_9 WHERE survived < 9 AND aircraft = "ussr an-26" AND damaged > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (to_iran INTEGER, damaged VARCHAR, survived VARCHAR, aircraft VARCHAR) Question: What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft? [/INST] SELECT AVG(to_iran) FROM table_name_9 WHERE survived < 9 AND aircraft = "ussr an-26" AND damaged > 3 </s>