Query editor
WITH numbered_transactions AS (SELECT s.*, c.*,ROW_NUMBER() OVER(PARTITION BY s.to ORDER BY s.updated_at DESC) as rnFROM (SELECT toFROM query_3232284LIMIT 30) AS top_addressesJOIN reservoir.sales AS s ON top_addresses.to = s.toJOIN reservoir.collection_floor_ask_events AS c ON s.tx_timestamp_dt = c.tx_timestamp_dt)SELECT * FROM numbered_transactions WHERE rn <= 2000 ORDER BY updated_at ASC;