misaghlbETH Merge: Selling Event?
    Updated 2022-09-29
    with miner_wallets as (
    select DISTINCT miner from ethereum.core.fact_blocks where network='mainnet'
    )
    SELECT
    date(block_timestamp) as date,
    count(DISTINCT SENDER) swappers,
    sum(amount_in) as vol,
    case when BLOCK_NUMBER >= 15537351 then 'After' else 'Before' END as split
    FROM ethereum.core.ez_dex_swaps
    WHERE SYMBOL_IN = 'WETH'
    AND block_timestamp >= '2022-09-01'
    AND SENDER not in (SELECT miner from miner_wallets)
    GROUP by date, split
    Run a query to Download Data