🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
intermediate

SQL Query Drafter

#sql #database #code

Generates SQL queries based on natural language descriptions.

Write a SQL query for a PostgreSQL database. I have two tables, 'users' (id, name, signup_date) and 'orders' (id, user_id, total, order_date). I need to find the top 5 users by total spending in the last 30 days. Include the user's name and their total spending amount.