ML6Top 10 other tokens holders
    Updated 2022-10-25
    with liquids as (select count(*) as liquid_c ,sum(BALANCE/1e6) as liquid_a ,date as liquid_d from osmosis.core.fact_daily_balances
    where BALANCE_TYPE='liquid' and CURRENCY='uosmo'
    group by liquid_d)
    , staked as (select count(*) as staked_c ,sum(BALANCE/1e6) as staked_a ,date as staked_d from osmosis.core.fact_daily_balances
    where BALANCE_TYPE='staked' and CURRENCY='uosmo'
    group by staked_d)

    , top100_all as (select sum(BALANCE/1e6) , address from osmosis.core.fact_daily_balances
    where CURRENCY='uosmo'
    group by address
    order by 1 DESC
    limit 100)
    , top100_2022 as (select sum(BALANCE/1e6) , address from osmosis.core.fact_daily_balances
    where date<'2022-01-01' and CURRENCY='uosmo'
    group by address
    order by 1 DESC
    limit 100 )
    , avg_osmo as ( select sum(balance/1e6)/count(distinct address) from osmosis.core.fact_daily_balances
    where CURRENCY='uosmo')
    , avg_osmo_overtime as ( select sum(balance/1e6)/count(distinct address) , date from osmosis.core.fact_daily_balances
    where CURRENCY='uosmo'
    group by date)
    , avg_osmo_overtime_users as ( select sum(balance/1e6)/count(distinct address) as avg , count(distinct address) as users, date from osmosis.core.fact_daily_balances
    where CURRENCY='uosmo'
    group by date)
    , top10_osmo as (select sum(BALANCE/1e6) , address from osmosis.core.fact_daily_balances
    where CURRENCY='uosmo'
    group by address
    order by 1 DESC
    limit 10)
    ,top10_another as (select sum(BALANCE/(case when DECIMAL is null then 6 else DECIMAL end )) , address from osmosis.core.fact_daily_balances
    where CURRENCY like '%ibc%'
    group by address
    order by 1 DESC
    limit 10)
    Run a query to Download Data