Query editor
--people that claimed the ENA airdropwith table1 as (SELECT date_trunc('day', evt_block_time) as period, evt_tx_from as senderFROM erc20_ethereum.evt_transferWHERE "from" = 0x43cbe9dfe84e2f7451cf2b5caa28f02040e942f5) ,--people that farmed/participated in Balancer campaign on open edentable2 AS (SELECTvarbinary_ltrim(topic1) as sender,SUM(VARBINARY_TO_UINT256(VARBINARY_SUBSTRING(data, 1, 32)) / 1e18) AS cUSDO_amountFROM ethereum.logsWHEREtopic0 = FROM_HEX('ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef') -- transfer function signatureAND contract_address = 0xaD55aebc9b8c03FC43cd9f62260391c13c23e7c0--AND topic1 = FROM_HEX('000000000000000000000000C03309DE321A4D3df734F5609B80cC731ae28e6D') -- contract that receieves the cUSDO tokens ("to" contract)AND topic2 = FROM_HEX('000000000000000000000000bA1333333333a1BA1108E8412f11850A5C319bA9') -- contract that receieves the cUSDO tokens ("to" contract)--0xC03309DE321A4D3df734F5609B80cC731ae28e6DGROUP BY 1)SELECT DISTINCT t1.sender AS senderFROM table1 t1INNER JOIN table2 t2ON t1.sender = t2.sender--ON LOWER(t1.sender) = LOWER(t2.sender);