Query editor
with current_lep_holders as (SELECT * FROM(SELECT a.evt_block_time, "from", to, a.id, lep_type,ROW_NUMBER() OVER (PARTITION BY a.id ORDER BY a.evt_block_time DESC) AS ROW_NUMFROM erc1155_ethereum.evt_TransferSingle aRIGHT JOIN query_3069180 b ON a.id=b.idWHEREcontract_address = 0x495f947276749ce646f68ac8c248420045cb7b5e)WHERE ROW_NUM = 1)SELECT--"to" AS holder,'<a href="https://opensea.io/' || CAST("to" as varchar) ||'?search[collections][0]=low-effort-punks">' || coalesce(name,concat(substring(cast ("to" as varchar),1,5),'...',substring(cast ("to" as varchar),39,4))) || '</a>' as holder,evt_block_date as first_lambo_date,COUNT(CASE WHEN lep_type = 'wordsbylep' THEN 1 END) AS wordsbylep,COUNT(CASE WHEN lep_type = 'lepexclusive' THEN 1 END) AS lepexclusives,COUNT(CASE WHEN lep_type = 'b.s.k.' THEN 1 END) AS "b.s.k.",COUNT(CASE WHEN lep_type = 'punk' THEN 1 END) AS punksFROM current_lep_holdersLEFT JOIN dune."hildobby".dataset_opensea_usernames ON address="to"LEFT JOIN query_3069573 b ON b.holder = "to"GROUP BY 1,2ORDER BYpunks DESC