Show the average amount of transactions with type code "SALE".
CREATE TABLE TRANSACTIONS (amount_of_transaction INTEGER, transaction_type_code VARCHAR)
SELECT AVG(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "SALE"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE TRANSACTIONS (amount_of_transaction INTEGER, transaction_type_code VARCHAR) Question: Show the average amount of transactions with type code "SALE". [/INST] SELECT AVG(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" </s>