Query editor
with tips_data as (selectcast(date as timestamp) as dt,tips_aa,aa_mev_usdfrom dune."0xrafae".dataset_mev_sheetx),prices as(selectminute,pricefrom prices.usdwhereblockchain = 'solana'and symbol = 'SOL'),tips_ratio_data as(selectdt,sum(tips_aa * price) as tips_aa_usd,sum(aa_mev_usd) as tot_aa_mev_usdfrom tips_datainner join prices on date_trunc('day', minute) = dtgroup by dt)selectdt,tips_aa_usd / tot_aa_mev_usd * 100 as ratiofrom tips_ratio_data