with tab as (
select
block_timestamp,
signers[0] as minter,
tx_id as mint
from eclipse.core.fact_events_inner
where
instruction_program_id in ('5hEa5j38yNJRM9vQA44Q6gXVj4Db8y3mWxkDtQeofKKs','RariUNM3vz1rwxPg8UJyRAN7rSKXxgd2ncS2ddCa4ZE')
and SUCCEEDED = 'TRUE'
and EVENT_TYPE = 'mintTo')
select
count (distinct mint) as mints
from tab
where minter = '{{Address}}'