Show the average share count of transactions each each investor, ordered by average share count.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER)
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER) Question: Show the average share count of transactions each each investor, ordered by average share count. [/INST] SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count) </s>