SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  "SALE" GROUP BY investor_id
Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
SELECT investor_id , COUNT ( * ) FROM TRANSACTIONS WHERE transaction_type_code = `` SALE '' GROUP BY investor_id
select investor_id , count ( * ) from transactions where transaction_type_code = value group by investor_id
Show the number of transactions with transaction type code `` SALE '' for different investors if it is larger than 0 .