Context: 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.
Answer: SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)