Query editor
selectdate(block_time) as day,sum(fee_value - tx_cost_usd) as net_revenue,count(*) as num_batches,sum(fee_value - tx_cost_usd) / count(*) as avg_revenue_per_batchfrom gnosis_protocol_v2."batches"where fee_value is not nulland block_time > '2022-03-01'group by day