Query editor
WITH schedule(allocation, amount, unlock_start, duration_months) AS (VALUES('Team Initial Buy', CAST(150000000 AS DOUBLE), TIMESTAMP '2026-08-15 17:23:18', 6),('Sniper Tax Buyback for Team', CAST(155822559 AS DOUBLE), TIMESTAMP '2026-10-17 17:34:09', 9),('Team', CAST(250000000 AS DOUBLE), TIMESTAMP '2027-07-16 17:19:58', 6)), months AS (SELECT SEQUENCE(0, 24) AS idxs), calendar AS (SELECTs.allocation, s.amount, s.unlock_start, s.duration_months, DATE_ADD('month', i, CAST(s.unlock_start AS DATE)) AS month_start, s.amount / s.duration_months AS monthly_unlockFROM schedule sCROSS JOIN UNNEST((SELECT idxs FROM months)) AS t(i)WHERE i < s.duration_months)SELECTmonth_start, allocation, monthly_unlock AS unlock_amount, SUM(monthly_unlock) OVER (PARTITION BY allocation ORDER BY month_start) AS cumulative_unlocked, amount AS total_allocationFROM calendarORDER BY month_start, allocation