vendettaTx count tiers copy
    (with tbl AS
    (
    SELECT
    from_address,
    count (DISTINCT tx_hash) as total_tx
    from polygon.core.fact_transactions
    GROUP by 1
    having total_tx >4

    )
    SELECT
    count (DISTINCT from_address) as "Total address",
    'more than 4 tx' as Tier
    from tbl)

    union all

    (with tbl AS
    (
    SELECT
    from_address,
    count (DISTINCT tx_hash) as total_tx
    from polygon.core.fact_transactions
    GROUP by 1
    having total_tx >10

    )
    SELECT
    count (DISTINCT from_address) as "Total address",
    'more than 10 tx' as Tier
    from tbl)

    union all

    (with tbl AS
    (
    Run a query to Download Data