Query editor
/*──────────────────────────────────────────────────────────────Dogstar League – Weekly New Accounts Trend (Last 12 Weeks)▸ Shows the number of new accounts created per week by the specified funderover the past 12 weeks (including the current partial week).──────────────────────────────────────────────────────────────*/WITHparams AS (SELECT'GDBSXMDBDHVZ3OMNQWV5MMNPMPOJRZAGEAOVRYWXZG5VC5I5B4SOXSBW' AS funder,-- Start the analysis 12 weeks before the start of the current weekdate_trunc('week', date_add('week', -12, current_date)) AS window_start)SELECTdate_trunc('week', h.closed_at) AS week_start_date, -- Truncate creation time to the start of the weekCOUNT(h.account) AS new_accounts_count -- Count accounts created in that weekFROM stellar.history_operations hJOIN params p ON TRUEWHEREh.type_string = 'create_account'AND h.funder = p.funderAND h.closed_at >= p.window_start -- Only include operations within the window-- No end date needed, implicitly goes up to 'now'GROUP BY1 -- Group by the truncated week (week_start_date)ORDER BYweek_start_date ASC -- Order chronologically for the graph