select
date_trunc('day', block_timestamp),
Case
when from_address like '0xe94b5eec1fa96ceecbd33ef5baa8d00e4493f4f3' then 'Treasury'
END as amount_from ,
count(*)
from ethereum.core.ez_token_transfers
where from_address like '0xe94b5eec1fa96ceecbd33ef5baa8d00e4493f4f3'
--and origin_to_address != origin_from_address
and amount_usd < 1e9
group by 1,2