saeedmznMetamask vs. Other Platforms - avg volume
    Updated 2022-06-25
    with metamask as (
    select
    sum (zeroifnull(amount_usd)) as Volume,
    avg(zeroifnull(amount_usd)) as AVG_Volume
    from ethereum.core.ez_token_transfers
    where origin_to_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
    and block_timestamp::date >= '2021-01-01'
    and block_timestamp::date not in ('2021-08-18','2021-10-13','2021-07-24','2021-11-17','2021-12-03','2022-04-26')
    and HAS_PRICE = 'true'
    and origin_function_signature ='0x5f575529'
    -- group by 1
    ),
    uni_sushi as (
    select
    platform,
    sum (zeroifnull(amount_in_usd)) as Volume,
    avg(zeroifnull(amount_in_usd)) as AVG_Volume
    from ethereum.core.ez_dex_swaps
    where block_timestamp >='2021-01-01'
    group by 1),
    one_inch as (
    select
    sum (zeroifnull(amount_usd)) as Volume,
    avg(zeroifnull(amount_usd)) as AVG_Volume
    from ethereum.core.ez_token_transfers
    where origin_to_address = lower('0x11111254369792b2Ca5d084aB5eEA397cA8fa48B')
    and block_timestamp::date >= '2021-01-01'
    and HAS_PRICE = 'true'
    -- group by 1
    ),
    aLL_ as (select 'metamask' as platform , Volume , AVG_Volume from metamask
    UNION
    select platform , Volume , AVG_Volume from uni_sushi
    UNION
    select '1inch' as platform , Volume , AVG_Volume from one_inch
    Run a query to Download Data