Query editor
WITH ape AS (SELECT"tokenId" AS id,casewhen labels.get("from", 'ens name') IS NOT NULLTHEN CONCAT('<a href="https://etherscan.io/address/', (REPLACE ("from"::text, '\x', '0x')), '" target="_#internaltx" >', left(labels.get("from", 'ens name')::text,42), '</a>')elseCONCAT('<a href="https://etherscan.io/address/', (REPLACE ("from"::text, '\x', '0x')), '" target="_#internaltx" >', "from", '</a>')END as Seller,"to" AS Buyer,os.price/1e18 AS eth_sale,a.evt_block_time AS timeFROM boredape."BoredApeYachtClub_evt_Transfer" aINNER JOIN opensea."WyvernExchange_evt_OrdersMatched" os ON a.evt_tx_hash = os."evt_tx_hash"),p AS (SELECT minute, priceFROM prices.usdWHERE symbol = 'WETH'ORDER BY minute DESCLIMIT 1)SELECT id, Seller, eth_sale, eth_sale*p.price AS usd_sale, timeFROM ape, p