Query editor
with arb_fee as (select time, sum(fee) as fee, sum(sum(fee)) over (order by time) as cumulative_fee_arbfrom query_3275117group by 1order by time desc), bsc_fee as (select time, sum(fee) as fee, sum(sum(fee)) over (order by time) as cumulative_fee_bscfrom query_3275145group by 1order by time desc), eth_fee as (select time, sum(fee) as fee, sum(sum(fee)) over (order by time) as cumulative_fee_ethfrom query_3275214group by 1order by time desc), base as (selectcase when a.time is not null then a.timewhen b.time is not null then b.timewhen e.time is not null then e.time end as time, coalesce(cumulative_fee_arb,0) as cumulative_fee_arb, coalesce(cumulative_fee_bsc,0) as cumulative_fee_bsc, coalesce(cumulative_fee_eth,0) as cumulative_fee_ethfrom arb_fee as afull outer join bsc_fee as b on a.time = b.timefull outer join eth_fee as e on a.time = e.time)select time, cumulative_fee_arb, cumulative_fee_bsc, cumulative_fee_eth, cumulative_fee_arb + cumulative_fee_bsc + cumulative_fee_eth as total_feefrom baseorder by 1 desc