Query editor
with labels as (select distinct address,name from labels.allwhere blockchain = 'ethereum'and category in ('contract','social','institution','hackers','infrastructure','dao','ofac_sanction','bridge','dao','project wallet','hackers','Rollup','infrastructure')and (label_type = 'identifier' or (label_type = 'persona' and model_name = 'dao_framework'))union allselect * from query_2640605union allselect address, exchange as namefrom query_2296923union allselect address, namefrom ethereum.contracts),total as (select address, contract_address, sum(amount) as amount from (select "to" as address,contract_address,sum(value/1e18*-1) as amountFROM erc20_ethereum.evt_TransferWHERE evt_block_number >= 17445564AND contract_address IN(0xae78736cd615f374d3085123a210448e74fc6393,0xae7ab96520de3a18e5e111b5eaab095312d7fe84,0xbe9895146f7af43049ca1c1ae358b0541ea49704,0xf1c9acdc66974dfb6decb12aa385b9cd01190e38,0xf951e335afb289353dc249e82926178eac7ded78,0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3,0xa2e3356610840701bdf5611a53974510ae27e2e1,0xE95A203B1a91a908F9B9CE46459d101078c2c3cb,0xA35b1B31Ce002FBF2058D22F30f95D405200A15b,0xac3E018457B222d93114458476f3E3416Abbe38F,0xd5F7838F5C461fefF7FE49ea5ebaF7728bB0ADfa,0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549)and "from" in (0x93c4b944D05dfe6df7645A86cd2206016c51564D,0x54945180dB7943c0ed0FEE7EdaB2Bd24620256bc,0x8CA7A5d6f3acd3A7A8bC468a8CD0FB14B6BD28b6,0x1BeE69b7dFFfA4E2d53C2a2Df135C388AD25dCD2,0x9d7eD45EE2E8FC5482fa2428f15C971e6369011d,0x13760F50a9d7377e4F20CB8CF9e4c26586c658ff,0xa4C637e0F704745D182e4D38cAb7E7485321d059,0x57ba429517c3473B6d34CA9aCd56c0e735b94c02,0x0Fe4F44beE93503346A3Ac9EE5A26b130a5796d6,0x7CA911E83dabf90C90dD3De5411a10F1A6112184,0xAe60d8180437b5C34bB956822ac2710972584473,0x298aFB19A105D59E74658C4C334Ff360BadE6dd2)group by 1,2union allselect "from" as address,contract_address,sum(value/1e18) as amountFROM erc20_ethereum.evt_TransferWHERE evt_block_number >= 17445564AND contract_address IN(0xae78736cd615f374d3085123a210448e74fc6393,0xae7ab96520de3a18e5e111b5eaab095312d7fe84,0xbe9895146f7af43049ca1c1ae358b0541ea49704,