Query editor
with tokens_deployed as (select call_block_time as date_deployed, call_tx_signer as deployer, account_mintfrom pumpdotfun_solana.pump_call_createwhere call_block_time > CURRENT_DATE - INTERVAL '3' month),bs as (select dt.block_time, dt.trader_id as account, dt.token_bought_mint_address as token_address, -amount_usd as usd, date_deployedfrom dex_solana.trades dtjoin tokens_deployed t on t.account_mint = dt.token_bought_mint_address and dt.block_time >= t.date_deployedwhere dt.block_time > CURRENT_DATE - INTERVAL '3' monthUNION ALLselect dt.block_time, dt.trader_id as account, dt.token_sold_mint_address as token_address, amount_usd as usd, date_deployedfrom dex_solana.trades dtjoin tokens_deployed t on t.account_mint = dt.token_sold_mint_address and dt.block_time >= t.date_deployedwhere dt.block_time > CURRENT_DATE - INTERVAL '3' month),pnl as (SELECTaccount, token_address, date_deployed, SUM(usd) AS pnlFROMbsGROUP BY1,2,3)select *from pnlwhere pnl > 10000