Query editor
1select sum(amount) as total_traded2from3(4select5sum(output_amount0 * tok_0_close_price + output_amount1 * tok_1_close_price) amount6from query_26257917union all8select 9sum(usd_amount) amount10from11query_313244412)
select sum(amount) as total_traded
from
(
select
sum(output_amount0 * tok_0_close_price + output_amount1 * tok_1_close_price) amount
from query_2625791
union all
sum(usd_amount) amount
query_3132444
)