Query editor
with sold_txes as (selectto as buyers,"from" as sellers,evt_tx_hash as tx_hashfrom erc1155_abstract.evt_transfersinglewherecontract_address = 0x458422e93bf89a109afc4fac00aacf2f18fcf541and id = 1and evt_tx_to = 0xE41cdAE209E91383d7adC7dB030E9aF5DDC43882),usdc as (selectblock_time,tx_hash,bytearray_ltrim(topic2) as wallet_distribute,varbinary_to_decimal(varbinary_ltrim(data))/1e6 as usdcfrom abstract.logswhere tx_hash in ( select tx_hash from sold_txes)and contract_address = 0x84a71ccd554cc1b02749b35d22f684cc8ec987e1and bytearray_ltrim(topic2) = 0xec179db727347384cbc65ec4b098b98b3abdcbab),finaltb as (selectu.block_time,u.tx_hash,u.usdc,u.usdc as r,s.buyers,s.sellersfrom usdc uleft join sold_txes son u.tx_hash = s.tx_hash)selectRANK() OVER ( partition by sellers ORDER BY block_time ASC ) AS rank,*from finaltborder by block_time desc