Query editor
selectsum(tx_cost_usd - fee_value) as net_cost,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-05-04'
Query editor
1select2sum(tx_cost_usd - fee_value) as net_cost,3count(*) as num_batches,4sum(fee_value - tx_cost_usd) / count(*) as avg_revenue_per_batch5from gnosis_protocol_v2."batches"6where fee_value is not null7and block_time > '2022-05-04'8