Query editor
WITHlsts as (SELECTw_authority as authority, reserve, lstFROM query_3711279), slsts as (--single validator lsts. Comes from a binary that fp lee runs.SELECT * FROM query_3708918), program_accounts as (SELECT*FROM (SELECTdistinctstake_account_raw as address, authority --authorities can change, we need to get these authorities BY DATE.FROM dune.dune.result_solana_stake_accounts_authoritiesWHERE authority IN (SELECT authority FROM lsts)and latest = 1 --might lose some historical balances that were only temporarily authed to an LST?UNIONSELECTreserve as address, authorityFROM lsts)UNION ALLSELECTreserve as address, vote as authorityFROM slstsUNION ALLSELECTactive as address, vote as authorityFROM slsts), times as (withauth as (SELECT authority FROM lstsUNION ALLSELECT vote FROM slsts)--daysSELECTq.time, a.authorityFROM query_2254698 q, auth aWHERE time >= timestamp '{{Start Date}}')