Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked below!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/SELECTa.tokenId, b.toFROM((SELECTtokenId,MAX(evt_block_number) AS lastnoFROMspaceid_bnb.BaseRegistrarImplementation_evt_Transferwhere evt_block_number < 40077593GROUP BY1) AS aJOIN spaceid_bnb.BaseRegistrarImplementation_evt_Transfer AS b ON a.lastno = b.evt_block_numberAND a.tokenId = b.tokenId)