Query editor
with transfers as (SELECT "from" as address,- CAST(SUM(value) AS DOUBLE) AS amountFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2and evt_block_time<CAST( '2024-01-01 00:00' as timestamp)GROUP BY 1UNION ALLSELECT "to" as address,CAST(SUM(value) AS DOUBLE) as amountFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2and evt_block_time<CAST( '2024-01-01 00:00' as timestamp)GROUP BY 1),balance as (SELECT address, SUM(amount / 1e18) AS WETH_holdingFROM transfersGROUP BY 1)SELECT address, WETH_holding FROM balanceWHERE WETH_holding> 1ORDER BY WETH_holding DESC