mlhAddresses received most volume in USD based on received tokens in the last year
    Updated 2022-08-10
    with tornado as (
    select address,
    address_name
    from flipside_prod_db.crosschain.address_labels
    where project_name ilike 'tornado cash'
    )

    select symbol,
    sum(volume_usd) as volume_USD
    from ( select address ,
    'ETH' symbol,
    volume_usd
    from (select address,
    sum(amount_usd) as volume_usd
    from ethereum.core.ez_eth_transfers
    join tornado on eth_to_address = address
    where block_timestamp::date > current_date - 365
    and amount_usd > 0
    group by 1
    )
    group by 1,2,3
    UNION
    select address,
    symbol,
    volume_usd
    from (select address,
    symbol,
    sum(amount_usd) as volume_usd
    from ethereum.core.ez_token_transfers
    join tornado on origin_to_address = address
    where block_timestamp::date > current_date - 365
    and amount_usd > 0
    group by 1,2
    )
    group by 1,2,3
    Run a query to Download Data