select date_trunc('day',block_timestamp) as block_day,
sum(inner_instruction:instructions[0]:parsed:info:amount /POW(10,9)) as mSOLamount
from solana.fact_events
where block_timestamp::date between '2022-03-01' and '2022-03-31'
and instruction:programId = 'QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB'
and instruction:accounts[2] = 'Hs2XmWQFw3ExawMQkCsBGQGX73JG1n2Qpjm8G7dYRw7m'
and instruction:accounts[6] = 'J829VB5Fi7DMoMLK7bsVGFM82cRU61BKtiPz9PNFdL7b'
group by block_day
order by block_day desc