Query editor
WITH cancelled_bids AS (SELECTtopic1 AS bid_idFROM ethereum.logsWHERE contract_address = 0x04a5b8C32f9c38092B008A4939f1F91D550C4345AND topic0 = 0xbd8de31a25c2b7c2ddafffe72dab91b4ce5826cfd5664793eb206f572f732c27)SELECTCOUNT(*) as total_active_bids,COUNT(DISTINCT topic2) as unique_active_biddersFROM ethereum.logsWHERE contract_address = 0x04a5b8C32f9c38092B008A4939f1F91D550C4345AND topic0 = 0x5986d4da84b4e4719683f1ba6994a5bac9ff76c75db61b1a949e5b7d3424e892AND topic1 NOT IN (SELECT bid_id FROM cancelled_bids)