Query editor
-- V2: 查找A->B, B->A的快速来回交易WITH ranked_trades AS (SELECTblock_time,nft_contract_address,token_id,buyer,seller,-- 按每个具体NFT的交易时间排序LAG(seller, 1) OVER (PARTITION BY nft_contract_address, token_id ORDER BY block_time) AS last_seller,LAG(buyer, 1) OVER (PARTITION BY nft_contract_address, token_id ORDER BY block_time) AS last_buyerFROM nft.tradesWHERE project = 'blur')SELECT*FROM ranked_tradesWHERE buyer = last_seller AND seller = last_buyer -- 当前买家是上一笔的卖家,当前卖家是上一笔的买家LIMIT 20;