Query editor
selectday, sum(case when description = 'FR Withdraw to User' then token_amount end) as "Total FR Withdraw (Post-Fees)", sum(case when description = 'FR Received by Fee Vault' then token_amount*5 end) as "Total FR Fees Received", sum(case when description = 'veFR burned' then token_amount end) as "Total veFR Burned", sum(case when description = 'FR Received by Fee Vault' then token_amount*5 end)/sum(case when description = 'veFR burned' then token_amount end) as "Fees % Based on FR Withdrawal"from query_4239002group by 1