Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR)
SELECT investor_id, COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR) Question: Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0. [/INST] SELECT investor_id, COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id </s>