Query editor
with usdt_tx as (selectevt_block_time block_time,"from" as from_address,"to" as to_address,cast(value as decimal(38, 0)) / 1e6 as tx_amt,evt_tx_hash tx_hash,'USDT' symbolfrom tether_tron.tether_usd_evt_transferwhere evt_block_time >= now() - interval '180' day),-- cex_label as (-- select-- address,-- name label-- from-- labels.addresses-- where-- blockchain = 'ethereum'-- and model_name = 'cex_tron'-- ),-- token_price as (-- select symbol, price-- from prices.usd_latest-- where symbol in ('WETH','USDT','USDC')-- and blockchain = 'ethereum'-- ),tx_detail as (selecta.block_time,'Ethereum' blockchain,d.entity,a.from_address,d.label from_address_type,a.to_address,-- e.label to_address_type,a.tx_hash,a.symbol,round(a.tx_amt,2) tx_amt,round(a.tx_amt,2) tx_usd_amtfromusdt_tx a-- join-- token_price c-- on-- a.symbol = c.symbolleft joindune.xyn008.dataset_mc_address_list dona.from_address = d.address-- left join-- cex_label f-- on-- a.from_address = f.addresswhereto_address = 0xD40EB5E9EBBD759F0E18D49C5B21102403FB4095-- coalesce(d.label,f.label) not like '%Mercado%'