select date_trunc('day',block_timestamp) as date,
count(DISTINCT receiver) as wallet,
sum(wallet)over(ORDER by date) as cum_wallets
FROM terra.core.ez_transfers
WHERE MESSAGE_VALUE['@type'] ='/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward' AND CURRENCY='uluna'
GROUP BY 1 ORDER BY 1