select
date_trunc('hour',block_timestamp) as date ,
avg(amount_usd) as swap_size from polygon.udm_events
where
to_label='sushiswap' and amount_usd !=0 and
(to_address_name Ilike '%SUSHI-USDT%' OR to_address_name Ilike '%SUSHI-USDC%' OR to_address_name Ilike '%WETH %' )
AND
Block_TimeStamp between '2021-12-08' and '2021-12-08T23:59:59Z'
GROUP by date
order by date