banbannardETH Merge: Selling Event?
    Updated 2022-09-29
    with base1 as (select
    date_trunc('day', block_timestamp) as day,
    count(distinct(tx_hash)) as ETH_selling_swap_count,
    sum(amount_in) as ETH_selling_volume
    from ethereum.core.ez_dex_swaps
    where symbol_in in ('WETH', 'ETH')
    and amount_in > 0
    and amount_in < 99999999
    and day >= current_date - 90
    group by 1),

    base2 as (select
    date_trunc('day', block_timestamp) as day,
    count(distinct(tx_hash)) as ETH_buying_swap_count,
    sum(amount_out) as ETH_buying_volume
    from ethereum.core.ez_dex_swaps
    where symbol_out in ('WETH', 'ETH')
    and amount_out > 0
    and amount_out < 99999999
    and day >= current_date - 90
    group by 1),

    base3 as (select a.day,
    case
    when a.day = '2022-09-15' then 'Ethereum Merge Day'
    when a.day < '2022-09-15' then 'Before Merge'
    when a.day > '2022-09-15' then 'After Merge'
    end as categories,
    case
    when a.day >= '2022-09-15' then 140000
    else 0
    end as post_ETH_merge_count,
    case
    when a.day >= '2022-09-15' then 7000000
    else 0
    end as post_ETH_merge_volume,
    Run a query to Download Data