SELECT date(block_timestamp) as day, sum(fee_amount)/ pow(10,6) as fees_collected from
(select *, fee[0]:amount[0]:amount as fee_amount
from terra.transactions
where block_timestamp >= '2022-03-01'
and fee[0]:amount[0]:denom = 'uusd')
GROUP by 1
limit 100