SELECT EVENT_INPUTS:pool as fuse_pool
sum(EVENT_INPUTS:"amount"/pow(10,6)) as amount_usdt
from ethereum.events_emitted
where CONTRACT_ADDRESS = '0x66f4856f1bbd1eb09e1c8d9d646f5a3a193da569'
and EVENT_NAME = 'PoolAllocation'
and TX_SUCCEEDED = TRUE
GROUP by 1