select
block_hour,
date_trunc('day',block_hour) as date,
date_trunc('week',block_hour) as week,
underlying_symbol,
token_price,
ctoken_price,
borrow_apy
from compound.market_stats
where block_hour > getdate() - interval'60 days'
order by underlying_symbol, date, block_hour