Query editor
WITH c AS (SELECT call_tx_hash AS tx, cardinality(solverOps) AS n_ops,transform(solverOps, o -> CAST(json_extract_scalar(o, '$.bidAmount') AS double)) AS bids,transform(solverOps, o -> json_extract_scalar(o, '$.solver')) AS solversFROM chainlink_base.atlas_call_metacallWHERE call_block_date >= DATE '2026-10-01'AND contract_address = 0x583dcfef0d240dc80753f0f0b26513fee27d9b77AND call_success AND cardinality(solverOps) = 2),e AS (SELECT evt_tx_hash AS tx, count(*) AS n_evt, max(CASE WHEN success THEN cast(bidAmount AS double) END) AS w_bidFROM chainlink_base.atlas_evt_solvertxresultWHERE evt_block_date >= DATE '2026-10-01'AND contract_address = 0x583dcfef0d240dc80753f0f0b26513fee27d9b77GROUP BY 1)SELECT count(*) AS two_op_metacalls,count_if(bids[1] >= bids[2]) AS op1_bid_ge_op2,count_if(e.w_bid = greatest(bids[1], bids[2])) AS winner_is_higher_bid,count_if(e.n_evt = 2) AS higher_failed_lower_won,count_if(solvers[1] = solvers[2]) AS same_solver_both_ops,count_if(bids[2] <= 1e9) AS op2_dust_bidFROM c JOIN e ON e.tx = c.tx