Query editor
WITH developer_mints AS (SELECTtoken_mint_address AS token,tx_signer AS developer,block_slot,block_time,tx_id,ROW_NUMBER() OVER (PARTITION BY tx_signerORDER BY block_time ASC) AS developer_mint_rankFROM tokens_solana.transfersWHERE action = 'mint'AND outer_executing_account = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'AND block_time >= NOW() - INTERVAL '600' DAY),first_developer_mints AS (SELECTtoken,developer,block_slot AS mint_slot,block_time AS mint_time,tx_id AS mint_txFROM developer_mintsWHERE developer_mint_rank = 1),tfg_buys AS (SELECTtoken_bought_mint_address AS token,trader_id AS buyer,block_slot AS buy_slot,block_time AS buy_time,tx_id AS buy_tx,amount_usd,token_bought_amountFROM dex_solana.tradesWHERE trader_id = '2CQgjcdNEo7WtbQLpJTAVcC3Ga61pNvRDTgP5grzctFG'AND block_time >= NOW() - INTERVAL '1' DAY)SELECTf.token,f.developer,f.mint_slot,f.mint_time,f.mint_tx,b.buy_slot,b.buy_time,b.buy_tx,b.amount_usd,b.token_bought_amount,b.buy_slot - f.mint_slot AS slot_differenceFROM first_developer_mints f