Query editor
select days,'price' as category,pricefrom (selectdate_trunc('day',minute) days,price,row_number() over(partition by date_trunc('day',minute) order by minute desc ) ranksfrom prices.usd where contract_address = 0x069b8857feab8184fb687f634618c035dac439dc1aeb3b5598a0f00000000001and minute > TRY_CAST('2023-01-01' AS TIMESTAMP))a where ranks = 1union allselectdays,'fee' as category,feefrom (selectdate_trunc('day',block_time) days,sum(fee) feefrom solana.transactionswhere success = trueand block_time >= TRY_CAST('2023-01-01' AS TIMESTAMP)group by 1) a