Daily Active AI Users
The events(user_id, event_date, event_name) table contains product activity. Return event_date and distinct active_users, ordered by date.
Examples
EXAMPLE WALKTHROUGHdistinct daily users
A guided view of the published example, not a trace of your code.
INPUT
["CREATE TABLE events(user_id INT,event_date TEXT,event_name TEXT); INSERT INTO events VALUES(1,'2026-01-01','run'),(1,'2026-01-01','submit'),(2,'2026-01-01','run'),(2,'2026-01-02','run');"]TASKquery()
EXPECTED OUTPUT
[["2026-01-01",2],["2026-01-02",1]]Start with the input values shown in this example.
Input: CREATE TABLE events(user_id INT,event_date TEXT,event_name TEXT); INSERT INTO events VALUES(1,'2026-01-01','run'),(1,'2026-01-01','submit'),(2,'2026-01-01','run'),(2,'2026-01-02','run');
Output: [["2026-01-01",2],["2026-01-02",1]]
Explanation: distinct daily users
Hint 1
Check column aliases and required ordering.