with gmp as ( select CREATED_AT,
'GMP' as type,
id as tx_hash
from axelar.axelscan.fact_gmp
UNION
select CREATED_AT,
'Transfers' as type,
id as tx_hash
from axelar.axelscan.fact_transfers)
select
type,
count(DISTINCT tx_hash)+4000 as transactions
from gmp
where type = 'Transfers'
group by 1