Query editor
selectcount(distinct tx_hash) total_trades, sum(case when tx_type = 'buy' then amount else 0 end) total_vol, sum(case when tx_type = 'fee' then amount else 0 end) protocol_fee_income, count(distinct user) total_tradersfromdune.renaissprotocol_team.result_daily_trade_data