Query editor
WITH eligible_wallets AS (SELECT DISTINCT"from" AS walletFROM ethereum.transactions), staked_points AS (SELECTuser,SUM(amount) / 1e18 AS total_staked_ena,SUM(amount) / 1e18 * 40 AS total_pointsFROM ethena_labs_ethereum.ethenalpstaking_evt_stakeWHEREevt_block_time BETWEEN CAST('2024-09-02' AS TIMESTAMP) AND CAST('2025-03-23' AS TIMESTAMP)GROUP BYuser)SELECTs.user,s.total_staked_ena,s.total_pointsFROM staked_points AS sJOIN eligible_wallets AS eON s.user = e.walletORDER BYs.total_points DESC