CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INT)

Show the average share count of transactions each each investor, ordered by average share count.
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)
SELECT "investor_id", AVG("share_count") FROM "TRANSACTIONS" GROUP BY "investor_id" ORDER BY AVG("share_count") NULLS FIRST