Query editor
WITH subquery AS (SELECTcreation_traces.address AS contract_address,collections.name AS contract_name,creation_traces.block_time AS creation_date,MAX(collection_floor_ask_events.previous_price_decimal) AS highest_floor_price,collection_floor_ask_events.kind AS kind,MAX(collection_floor_ask_events.tx_hash) AS tx_hash,COUNT(DISTINCT e.evt_tx_hash) + COUNT(DISTINCT e2.evt_tx_hash) AS transactionsFROM ethereum.creation_tracesJOIN reservoir.collection_floor_ask_eventsON creation_traces.address = collection_floor_ask_events.contractJOIN reservoir.collectionsON creation_traces.address = collections.contractJOIN nft.tradesON creation_traces.address = trades.nft_contract_addressJOIN erc1155_ethereum.evt_TransferSingle AS eON creation_traces.address = e.contract_addressJOIN erc721_ethereum.evt_Transfer AS e2ON creation_traces.address = e2.contract_addressWHEREcreation_traces.block_time >= CURRENT_DATE - INTERVAL '2' monthAND collection_floor_ask_events.created_at >= CURRENT_DATE - INTERVAL '2' monthAND collection_floor_ask_events.kind = 'sale'AND NOT collection_floor_ask_events.tx_hash IS NULLGROUP BYcreation_traces.address,collections.name,creation_traces.block_time,collection_floor_ask_events.kindHAVINGCOUNT(DISTINCT e.evt_tx_hash) + COUNT(DISTINCT e2.evt_tx_hash) >= 50)SELECTcontract_address,contract_name,transactionsFROM subqueryORDER BYhighest_floor_price DESCLIMIT 100