Query editor
SELECTtrade_category,evt_type,SUM(amount_usd) AS total_amount_usdFROM (SELECT trade_category, evt_type, amount_usd FROM archipelago_ethereum.eventsUNION ALLSELECT trade_category, evt_type, amount_usd FROM archipelago_ethereum.trades) AS combined_dataGROUP BYtrade_category, evt_typeORDER BYtotal_amount_usd DESC;