Query editor
WITHmode as (selectvarbinary_substring (topic2, 13) as account,'Mode' as airdrops,'Mode' as blockchain,sum(cast(varbinary_to_uint256 (data) as double) / 1e18) as amountfrommode.logswherecontract_address = 0xDfc7C877a950e49D2610114102175A06C2e3167aand topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efand tx_to = 0x042e609b2d5aa6e815a44872131d8bbc6edceb55group by1,2,3)-- subsquid,subsquid as (select"to" as account,'Subsquid' as airdrops,'Arbitrum' as blockchain,SUM(CAST(value / 1e18 AS DOUBLE)) AS amountfromerc20_arbitrum.evt_transferwherecontract_address = 0x1337420dED5ADb9980CFc35f8f2B054ea86f8aB1and "from" = 0x59Eae72DdFc99851aCd1A766d4e2EB5e8686c0d4group by1,2,3)-- omni,omni as (select"to" as account,'Omni' as airdrops,'Ethereum' as blockchain,SUM(CAST(value / 1e18 AS DOUBLE)) AS amountfromerc20_ethereum.evt_transferwherecontract_address = 0x36E66fbBce51e4cD5bd3C62B637Eb411b18949D4and "from" = 0xD0c155595929FD6bE034c3848C00DAeBC6D330F6group by1,2,3),price AS (SELECTsymbol,AVG(price) AS price