Query editor
WITHcap_leaderboard AS (SELECTCAST(date AS TIMESTAMP) AS date,total_cap,total_participants,COALESCE(total_cap - LAG(total_cap) OVER (ORDER BY date), 0) AS cap_increase,COALESCE(total_participants - LAG(total_participants) OVER (ORDER BY date), 0) AS participants_increaseFROM dune.hinmy.dataset_cap_leaderboard_season2_daily)SELECTdate,total_cap,total_participants,cap_increase,participants_increaseFROM cap_leaderboardWHERE date >= TIMESTAMP '2026-02-11' AND date <= TIMESTAMP '2026-07-25'ORDER BY date DESC