0xHaM-dMiner's Addresses Based on Interval of tx Count
    Updated 2022-09-08
    with tb1 as (
    select
    miner,
    tx_count
    from ethereum.core.fact_blocks
    where tx_count < '{{interval}}' -- 50 by default
    AND NETWORK='mainnet'
    )
    , tb2 as (
    select
    miner,
    tx_count
    from ethereum.core.fact_blocks
    where tx_count > '{{interval}}' -- 50 by default
    AND NETWORK='mainnet'
    )
    , high_tx_cnt as (
    select
    miner,
    tx_count
    from ethereum.core.fact_blocks
    where tx_count > '{{interval}}' -- 50 by default
    and miner not in (SELECT miner from tb1)
    AND NETWORK='mainnet'
    )
    , low_tx_cnt as (
    select
    BLOCK_TIMESTAMP::date as date,
    miner,
    tx_count
    from ethereum.core.fact_blocks
    where tx_count < '{{interval}}' -- 50 by default
    and miner not in (SELECT miner from tb2)
    AND NETWORK='mainnet'
    )
    select
    Run a query to Download Data