Query editor
with xcopy_full_list as (select title, art_type, platform, category, contract_address, min_token_id, max_token_id, nonsequential_token_idfrom nft_ethereum_metadata.xcopy_full_listunion allselect 'LAWS_INNIT' as title, 'Edition' as art_type, 'Manifold' as platform, 'FRESH HELL' as category, 0xbb6eefd83daab02fa1a697eb9d8495eec9f9b384 as contract_address, 4 as min_token_id, 4 as max_token_id, cast(null as varchar) as nonsequential_token_idunion allselect 'POSH DOG SHIT, FOOD BANKS AND RAGE ROVERS' as title, 'Edition' as art_type, 'Manifold' as platform, 'FRESH HELL' as category, 0xbb6eefd83daab02fa1a697eb9d8495eec9f9b384 as contract_address, 6 as min_token_id, 6 as max_token_id, cast(null as varchar) as nonsequential_token_idunion allselect 'CAGE-0' as title, 'Edition' as art_type, 'Manifold' as platform, 'FRESH HELL' as category, 0xbb6eefd83daab02fa1a697eb9d8495eec9f9b384 as contract_address, 8 as min_token_id, 8 as max_token_id, cast(null as varchar) as nonsequential_token_idunion allselect 'INTRODUCING: KILL YOUR CUSTOMER' as title, 'Edition' as art_type, 'Manifold' as platform, 'FRESH HELL' as category, 0xbb6eefd83daab02fa1a697eb9d8495eec9f9b384 as contract_address, 10 as min_token_id, 10 as max_token_id, cast(null as varchar) as nonsequential_token_idunion allselect 'REMOTE SESSION' as title, 'Edition' as art_type, 'Manifold' as platform, 'FRESH HELL' as category, 0xbb6eefd83daab02fa1a697eb9d8495eec9f9b384 as contract_address, 11 as min_token_id, 11 as max_token_id, cast(null as varchar) as nonsequential_token_id)select block_time, title, case when try_cast(token_id as int) is nullthen '<a href="https://opensea.io/assets/ethereum/' || cast(nft_contract_address as varchar) || '/' || cast(token_id as varchar) ||'" target="_blank" >' || cast(token_id as varchar) || '</a>'else '<a href="https://opensea.io/assets/ethereum/' || cast(nft_contract_address as varchar) || '/' || cast(try_cast(token_id as int) as varchar) ||'" target="_blank" >' || cast(try_cast(token_id as int) as varchar) || '</a>'end as token_id_Link, nft_contract_address, token_id, case when currency_symbol = 'USDC' or currency_symbol = 'DAI' then amount_original*1.0/p.pricewhen currency_symbol like '%ETH%' then amount_originalelse null end as eth_price, case when currency_symbol like '%ETH%' then amount_original*1.0*p.pricewhen currency_symbol = 'USDC' or currency_symbol = 'DAI' then amount_originalelse null end as usdc_price, amount_original, currency_symbol, amount_usd, art_type, '<a href="https://opensea.io/' || cast(b.seller as varchar) ||'" target="_blank" >' || coalesce(es.name,CONCAT(substring(cast(b.seller as varchar) from 1 for 5),'..',substring(cast(b.seller as varchar) from 40))) || '</a>' as seller_link, '<a href="https://opensea.io/' || cast(b.buyer as varchar) ||'" target="_blank" >' || coalesce(eb.name,CONCAT(substring(cast(b.buyer as varchar) from 1 for 5),'..',substring(cast(b.buyer as varchar) from 40))) || '</a>' as buyer_link, row_number() over (partition by title order by block_time desc) as title_sale_rank_ascfrom( select a.*from( select t.block_time, q.title, t.token_id, case when tx_hash = 0xa4a36c621e223c79096011f26b372abee19d5a7f6812cb33e729285ed52ebf5e then 10else t.amount_original end as amount_original, t.currency_symbol, case when tx_hash = 0xa4a36c621e223c79096011f26b372abee19d5a7f6812cb33e729285ed52ebf5e then 25700.9else t.amount_usd end as amount_usd, q.art_type, q.platform, q.category, t.seller, t.buyer, t.nft_contract_addressfrom nft.trades tinner join xcopy_full_list qon ( t.nft_contract_address = q.contract_addressand t.token_id >= q.min_token_idand t.token_id <= q.max_token_id)or ( t.nft_contract_address = q.contract_addressand cast(t.token_id as varchar) = q.nonsequential_token_id