select * from
(SELECT sum(amount) as amount,
date(block_timestamp) as date,
locker_account as wallet
FROM solana.fact_gov_actions
where program_name = 'saber'
AND mint = 'Saber2gLauYim4Mvftnrasomsv6NvAuncvMEZwcLpD1'
and block_timestamp::date >= '2022-01-01'
and succeeded = TRUE
and action = 'LOCK'
group by date, wallet
order by date, amount
)
where amount > 10000000 -- for less result