Query editor
WITH cancelled_bids AS (SELECTtopic1 AS bid_idFROM ethereum.logsWHERE contract_address = 0x04a5b8C32f9c38092B008A4939f1F91D550C4345AND topic0 = 0xbd8de31a25c2b7c2ddafffe72dab91b4ce5826cfd5664793eb206f572f732c27),bids_per_user AS (SELECTtopic2 as bidder,COUNT(*) as bid_countFROM ethereum.logsWHERE contract_address = 0x04a5b8C32f9c38092B008A4939f1F91D550C4345AND topic0 = 0x5986d4da84b4e4719683f1ba6994a5bac9ff76c75db61b1a949e5b7d3424e892AND topic1 NOT IN (SELECT bid_id FROM cancelled_bids)GROUP BY topic2)SELECTbid_count as bids_per_user,COUNT(*) as number_of_usersFROM bids_per_userGROUP BY bid_countORDER BY bid_count