Query editor
WITH t AS (SELECT p.mint, p.s0, p.t0, p.mc_open, p.mx, p.slot_mx, c.c0,(p.mx >= 3*p.mc_open AND p.n_tr_apres_6h >= 50 AND p.slot_mx - p.s0 >= 1110) AS run3,(p.mx >= 5*p.mc_open AND p.n_tr_apres_6h >= 50 AND p.slot_mx - p.s0 >= 1110) AS run5FROM dune.franckyr.result_callers_pools p JOIN dune.franckyr.result_callers_curve c ON c.mint = p.mintWHERE NOT c.mayhem AND c.vsol_first <= 45 AND p.s0 - c.c0 >= 1000 AND COALESCE(c.sol_block0,0) <= 15),creators AS (SELECT DISTINCT creator AS u FROM dune.franckyr.result_callers_curve),hits AS (SELECT f.u, f.mint, f.s_buy, f.px_buy, f.sol_buy, t.run3, t.run5, t.t0, f.s_buy = t.c0 AS block0, f.cost, f.proceeds, f.s_sell1, t.mx, t.mc_openFROM dune.franckyr.result_callers_first_buys f JOIN t ON t.mint = f.mintWHERE f.buy_on_pool = 0 AND f.sol_buy >= 0.1 AND t.run3 AND f.s_buy < t.s0),cand AS (SELECT h.u FROM hits h LEFT JOIN creators c ON c.u = h.uWHERE c.u IS NULL AND h.t0 < TIMESTAMP '2026-09-22'GROUP BY 1 HAVING COUNT(*) >= 3 AND AVG(IF(block0,1.0,0.0)) <= 0.1),allb AS (SELECT e."user" AS u, e.mint, MIN(e.evt_block_slot) AS s_first, MIN(e.evt_block_time) AS t_first,MIN_BY(CAST(COALESCE(e.sol_amount, e.solAmount) AS double)/1e9, e.evt_block_slot) AS sol_first,MIN_BY(CAST(COALESCE(e.virtual_sol_reserves, e.virtualSolReserves) AS double)/1e9, e.evt_block_slot) AS vsol_firstFROM pumpdotfun_solana.pump_evt_tradeevent e JOIN cand ON cand.u = e."user"WHERE e.evt_block_date BETWEEN DATE '2026-09-01' AND DATE '2026-09-28' AND COALESCE(e.is_buy, e.isBuy) AND NOT COALESCE(e.mayhem_mode, false)GROUP BY 1,2)SELECT a.u, a.mint, a.s_first, a.t_first, a.sol_first, a.vsol_first,h.mint IS NOT NULL AS run3, COALESCE(h.run5, false) AS run5, h.px_buy, h.mx, h.mc_open, h.cost, h.proceeds, h.s_sell1FROM allb a LEFT JOIN hits h ON h.u = a.u AND h.mint = a.mintWHERE a.t_first >= TIMESTAMP '2026-09-10' AND a.sol_first >= 0.1