freemartianAll count
    Updated 2023-06-02
    -- forked from All affected addresses @ https://flipsidecrypto.xyz/edit/queries/dfe5f22d-5aec-473f-9ac6-5c58db21b858

    -- forked from Affected Addresses @ https://flipsidecrypto.xyz/edit/queries/4b283cb4-2353-4f5b-8192-4cb0fb159c4c

    with total as (
    select
    from_address,
    sum(amount) as Stolen_Fund,
    sum(amount * token_price) as Stolen_Fund_USD,
    Symbol as Token,
    'Optimism' as Network
    from optimism.core.ez_token_transfers
    where to_address in (
    '0x2162b6caa174b90416090bd4a87e7d08f7027c48',
    '0x9fa7bb759641fcd37fe4ae41f725e0f653f2c726',
    '0x29b32f1320e2e78fa66a92e5114a125e68e75e88')
    group by symbol, Network,from_address

    UNION

    select
    from_address,
    sum(amount) as Stolen_Fund,
    sum(amount * token_price) as Stolen_Fund_USD,
    Symbol as Token,
    'Arbitrum' as Network
    from arbitrum.core.ez_token_transfers
    where to_address in (
    '0x2162b6caa174b90416090bd4a87e7d08f7027c48',
    '0x9fa7bb759641fcd37fe4ae41f725e0f653f2c726',
    '0x29b32f1320e2e78fa66a92e5114a125e68e75e88')
    group by symbol, Network, from_address

    UNION

    select
    Run a query to Download Data