Abbas_ra21ETH Merge: Selling Event pt2
    Updated 2022-09-28
    with hot_wallet AS (select ADDRESS from ethereum.core.dim_labels
    where LABEL_TYPE='cex' and LABEL_SUBTYPE='hot_wallet'),
    miner AS (
    select distinct MINER AS miners from ethereum.core.fact_blocks
    )
    select
    case when ETH_TO_ADDRESS in (select Address from ethereum.core.dim_labels) then LABEL_TYPE
    else 'none labeled' end AS "destination",
    sum(AMOUNT) AS "ETH Amount",
    sum(AMOUNT_USD) AS "ETH Amount in USD"
    from ethereum.core.ez_eth_transfers left join ethereum.core.dim_labels on Address=ETH_TO_ADDRESS
    where date(BLOCK_TIMESTAMP) between '2022-09-08' and '2022-09-22'
    and ETH_FROM_ADDRESS in (select miners from miner)
    group by 1

    Run a query to Download Data