misaghlbETH Merge: Selling Event?
    Updated 2022-09-29
    with miner as (
    select DISTINCT miner from ethereum.core.fact_blocks where network='mainnet'
    )
    SELECT
    count(DISTINCT SENDER) as senders,
    sum(amount_in) as vol,
    'Non-Miner Sell' as type
    FROM ethereum.core.ez_dex_swaps
    WHERE SYMBOL_IN = 'WETH'
    AND BLOCK_NUMBER >= 15537351

    UNION ALL
    SELECT
    count(DISTINCT SENDER) as senders,
    sum(amount_out) as vol,
    'Non-Miner Buy' as type
    FROM ethereum.core.ez_dex_swaps
    WHERE SYMBOL_OUT = 'WETH'
    AND BLOCK_NUMBER >= 15537351

    UNION ALL
    SELECT
    count(DISTINCT SENDER) senders,
    sum(amount_in) as vol,
    'Miner Sell' as type
    FROM ethereum.core.ez_dex_swaps
    WHERE SYMBOL_IN = 'WETH'
    AND BLOCK_NUMBER >= 15537351
    AND SENDER in (SELECT miner from miner)

    UNION ALL
    SELECT
    count(DISTINCT SENDER) as senders,
    Run a query to Download Data