Query editor
SELECTRANK() OVER (ORDER BY SUM(amount) DESC) AS rank,to,SUM(amount)/1e18 AS received_OLAS,AVG(rec.total_value) as current_holding,ROUND(AVG(rec.total_value)/(SUM(amount)/1e18),2)*100 as percentage_remainingFROM autonolas_ethereum.OLAS_evt_TransferLEFT JOIN query_2766701 as rec ON rec.address = toWHERE "from" = 0xBA12222222228d8Ba445958a75a0704d566BF2C8GROUP BY toORDER BY received_OLAS DESC