PapasotTiger Chi holders algo balance
    Updated 2022-07-04
    with Tigers as (

    select *
    from algorand.asset
    where ASSET_NAME like '%Tiger Chi #%'
    and ASSET_DELETED= false
    and creator_address= '6SB72WOCSRQA57ME4SQHJVKV3PIPCEYG6C7CHHIUKZAM2MXWSMPSATFA2I'
    order by asset_name)

    select
    count(DISTINCT(address)) as frequency,
    case
    when balance between 0 and 1 then '0-1 Algo'
    when balance between 1 and 100 then '1-100 Algo'
    when balance between 100 and 10000 then '100-10000 Algo'
    when balance between 10000 and 1000000 then '10000-1000000 Algo'
    else '1000000+ Algo'
    end as Buckets

    from algorand.account_asset
    left join Tigers b using (asset_name)
    left join algorand.account c using (address)
    where ASSET_NAME like '%Tiger Chi #%'
    and amount = '1'
    and b.creator_address= '6SB72WOCSRQA57ME4SQHJVKV3PIPCEYG6C7CHHIUKZAM2MXWSMPSATFA2I'
    and asset_id is not null
    and asset_name is not null
    group by Buckets
    order by Buckets
    Run a query to Download Data