Muse Spark 1.3
meta/muse-spark-1.3
- Latency
- 1.2s
- Cost
- $0.00392
- Per 1,000
- $3.92
103 in · 892 out (769 reasoning) · 30 words · checks 6/6
- regex
- regex
- regex
- regex
- regex
- contains
SELECT c.name, SUM(o.amount) AS total_amount FROM customers c JOIN orders o ON c.id = o.customer_id WHERE EXTRACT(YEAR FROM o.ordered_at) = 2025 GROUP BY c.name ORDER BY total_amount DESC LIMIT 5;
Judge: Query correctly uses JOIN, GROUP BY, ORDER BY, filters 2025 with EXTRACT(YEAR FROM...), sorts descending, and limits to 5, but should GROUP BY c.id instead of c.name to handle customers with identical names correctly.