Query editor
withall_data as (selecttx_hash, time, bridge, integrator, chain_origin, cat, chain_destination, valuefromdune.jumper_exchange.result_lifi_bridgewhere integrator in ('blockscout')and time > TIMESTAMP '2024-09-01 00:00:00'union allselecttx_hash, time, cast(bridge as varchar) as bridge, integrator, chain_origin, cat, chain_origin as chain_destination, valuefromdune.jumper_exchange.result_lifi_swapwhere integrator in ('blockscout')and time > TIMESTAMP '2024-09-01 00:00:00'),pre_final as (selectsum(value) as value_usd,'total' as totalfromall_dataunion allselectsum(value) as value_usd,'bridge' as totalfromall_datawherecat = 'bridge'union allselectsum(value) as value_usd,'swap' as totalfromall_datawherecat = 'swap'union allselectsum(value) as value_usd,'bridge_30d' as totalfromall_datawherecat = 'bridge'and time > now() - interval '30' dayunion allselectsum(value) as value_usd,'swap_30d' as totalfromall_datawherecat = 'swap'and time > now() - interval '30' dayunion allselectsum(value) as value_usd,'bridge_7d' as total