Query editor
WITH united_swaps AS ((SELECTevt_block_time,"from" as callers,amount * 1e12 AS amount,tokenFROM symb_eth_portal_ethereum.Portal_evt_SynthesizeRequestWHEREtoken <> 0xd38bb40815d2b0c2d2c866e0c72c5728ffc76dd9AND token <> 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)UNION ALL(SELECTevt_block_time,to AS callers,amount * 1e12 AS amount,tokenFROM symb_eth_portal_ethereum.Portal_evt_BurnCompletedWHEREtoken <> 0xd38bb40815d2b0c2d2c866e0c72c5728ffc76dd9AND token <> 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2))SELECTSUM(amount / 1e18) AS swaps_amount,COUNT(*) AS swaps_number,AVG(amount / 1e18) AS avg_swap,MAX(amount / 1e18) AS max_swap,COUNT(DISTINCT callers) AS usersFROM united_swaps