Grok 4.6
x-ai/grok-4.6
- Latency
- 705ms
- Cost
- $0.00363
- Per 1,000
- $3.63
289 in · 540 out (447 reasoning) · 36 words · checks 4/5
- regex
- regex
- regex
- regex
- contains
SELECT gs.month::date, COUNT(DISTINCT e.user_id) FROM generate_series(DATE '2025-01-01', DATE '2025-12-01', INTERVAL '1 month') AS gs(month) LEFT JOIN events e ON e.occurred_at >= gs.month AND e.occurred_at < gs.month + INTERVAL '1 month' GROUP BY gs.month ORDER BY gs.month;
Judge: Query correctly returns distinct users per month in 2025 ordered by month, but uses generate_series with manual interval logic instead of the rubric-specified date_trunc('month', occurred_at) approach, which is less idiomatic for this use case.