select block_timestamp::date as date,
count(DISTINCT instruction:accounts[6]) as wallet
from solana.fact_events
where block_timestamp::date >= '2022-03-01'
and block_timestamp::date <= '2022-03-31'
and program_id = 'MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD'
and ( inner_instruction:instructions[0]:parsed:info:source = '7GgPYjS5Dza89wV6FpZ23kUJRG5vbQ1GM25ezspYFSoE' or inner_instruction:instructions[0]:parsed:info:destination = 'Du3Ysj1wKbxPKkuPPnvzQLQh8oMSVifs3jGZjJWXFmHN' )
group by date
order by date