Updated 2022-09-12
    with tb1 as (select
    *
    from ethereum.core.ez_token_transfers
    where ORIGIN_TO_ADDRESS='0xae1fc3947ee83aeb3b7fec237bcc1d194c88bc24' and ORIGIN_FUNCTION_SIGNATURE='0x8dbdbe6d'-- deposit to old one
    and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec'),

    tb2 as (select
    *
    from ethereum.core.ez_token_transfers
    where ORIGIN_TO_ADDRESS='0xae1fc3947ee83aeb3b7fec237bcc1d194c88bc24' and ORIGIN_FUNCTION_SIGNATURE='0xd1abb907'--withdraw from old one
    and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec'),

    tb3 as (select
    *
    from ethereum.core.ez_token_transfers
    where ORIGIN_TO_ADDRESS='0xef0881ec094552b2e128cf945ef17a6752b4ec5d' and ORIGIN_FUNCTION_SIGNATURE='0x8dbdbe6d'-- deposit to new one
    and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec')

    select
    'Deposit to Old contract' as type,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    sum(AMOUNT) as volume
    from tb1
    union all
    select
    'Deposit to new contract' as type,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    sum(AMOUNT) as volume
    from tb3
    union all
    select
    'withdraw from Old contract' as type,
    count(distinct ORIGIN_FROM_ADDRESS) as users,
    sum(AMOUNT) as volume
    from tb2
    union all
    Run a query to Download Data