0xtableauStaked vs. Unstaked
    Updated 2022-02-06
    select
    date_trunc('day', date) AS date,
    sum(BALANCE) as balance,
    sum(BALANCE_USD) as balance_usd,
    BALANCE_TYPE
    from
    terra.daily_balances
    where
    date >= CURRENT_DATE - interval '365 days'
    and CURRENCY = 'LUNA'
    and address <> 'terra1fl48vsnmsdzcv85q5d2q4z5ajdha8yu3nln0mh'
    group by
    date,
    BALANCE_TYPE
    order by
    1 desc
    Run a query to Download Data