Query editor
-- ============================================================================-- QUERY 6: 🎯 Serial Alpha Detector-- Wallets that were early buyers on MULTIPLE tokens that later became-- "winners" (5x+ pump or $1M+ lifetime volume). Repeatability across-- independent tokens is a much stronger skill signal than a single early-- buy, which could just be luck.---- DRAFT — not yet executed on Dune.-- ============================================================================with token_buy_events as (-- unpivot: every trade's BOUGHT leg becomes a token-centric eventselecttx_from as wallet, token_bought_address as token_address, block_time, block_date, amount_usd, token_bought_amount as token_amountfrom dex.tradeswhere blockchain = 'robinhood'and amount_usd > 0and token_bought_amount > 0), token_sell_events as (-- unpivot: every trade's SOLD leg becomes a token-centric eventselecttx_from as wallet, token_sold_address as token_address, block_time, block_date, amount_usd, token_sold_amount as token_amountfrom dex.tradeswhere blockchain = 'robinhood'and amount_usd > 0and token_sold_amount > 0), token_events as (-- every trade touching a token, regardless of which side of the swap-- it was on. amount_usd/token_amount on either leg is a valid-- per-trade price estimate for that token.select * from token_buy_eventsunion allselect * from token_sell_events), token_launch as (selecttoken_address, min(block_time) as launch_time, sum(amount_usd) as lifetime_volume_usdfrom token_eventsgroup by 1having sum(amount_usd) >= 5000 -- ignore near-dead tokens), launch_window_vwap as (