Query editor
with withdrawers as (select distinct tsf.to as withdrawerfrom erc20_ethereum.evt_Transfer tsfleft join ethereum.transactions txn on tsf."from" = txn."from" and tsf.evt_tx_hash = txn.hash and txn.success = true --filter for transfers signed by FTX walletswhere tsf."from" IN (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2, 0xc098b2a3aa256d2140208c3de6543aaef5cd3a94, 0x7abe0ce388281d2acf297cb089caef3819b13448) -- FTX Intl and FTX US walletsand txn."from" is not nulland evt_block_time >= cast('2022-11-06 06:00' as timestamp) and evt_block_time <= cast('2022-11-30' as timestamp)),ignored_addresses(address) as (VALUES-- FTX hacker0x59ABf3837Fa962d6853b4Cc0a19513AA031fd32b,0x866EeEcd1F248d1a0a2e0263F13594a6B8B7c01A,0x8059c2b8ff915ec4b615c95e719861f269d68ada,0x9b10ca213be20b8bc2a398839edd1f6406dc9b47,0xa122d2d3d147732e2b5cce7d43a8c20e99c569f1,0x5ab55afcbfde83e0b3fbeff67ed0da73ba7b629c,0xd53c2e2d17281487023c1e4433f7ac95b88d7277,0x7f3debba84491401bd4fe51c1a1926b049189d57,0x3e957efc6d1bf1d9141212269cd04855ad92696e,0x52da49c343df2d1880ec79df9c89a962afc8691d,0x99072e1422377d808d5599a78aa7e772b988c0fb,0xd11fd269ac6b602e42abb6f0f186cd5b27180ffd,0x44b53564b95530a0bc708900089e685eef12fa6e,0xc0c847b14965df7e7eaa003ea987c6187211d85f,0x11133bcf0ecbe48e74a4d787bb047aa5bc2c5cab,-- Bahamas Authorities0x2a4f8d77bade18256b1bdb3cf8782645037f60d3),filtered_withdrawers as (-- remove hackers and bahamas authorities addressesselect w.withdrawerfrom withdrawers wleft join ignored_addresses i on w.withdrawer = i.addresswhere i.address is NULL)select'cex' as category,'persona' as label_type,'ftx_survivors' as model_name,'ethereum' as blockchain,'FTX Survivor' as name,withdrawerfrom filtered_withdrawers