Query editor
with total_profit as(SELECTsum(revenue_eth) AS total_revenue_ethFROM(SELECT block_time,value / 1e18 AS revenue_ethFROM ethereum.tracesWHERE "to" = 0x6b75d8AF000000e20B7a7DDf000Ba900b4009A80AND value > cast(0 AS uint256)AND success) a),total_gas_fee as(selectsum(gas_price * 1.0 * gas_used/1e18) as gas_feefrom ethereum.transactionswhere "from" = 0xae2fc483527b8ef99eb5d9b44875f005ba1fae13),pnl as(selectp.total_revenue_eth - g.gas_fee as net_pnlfrom total_profit pcross join total_gas_fee g)select*from pnl