Query editor
WITH initial_buys AS (SELECTtrader_id,MIN(block_time) AS first_buy_time,SUM(token_sold_amount) AS total_sol_spent,SUM(token_bought_amount) AS total_token_boughtFROM dex_solana.tradesWHEREtoken_bought_mint_address = 'FtUEW73K6vEYHfbkfpdBZfWpxgQar2HipGdbutEhpump'AND token_sold_symbol = 'SOL'GROUP BYtrader_id)SELECTib.trader_id,ib.first_buy_time,ib.total_sol_spent AS sol_amount,ib.total_token_bought AS token_bought_amountFROM initial_buys AS ibORDER BYib.first_buy_timeLIMIT 100