🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
advanced

Complex Natural Language to SQL Translation

#sql #database #data-analysis #translation

Translate a verbose, multi-part analytical question into an optimized SQL query.

Convert the following complex natural language request into a highly optimized PostgreSQL query. The request involves multiple joins, window functions, and conditional aggregation based on a provided schema description: [SCHEMA DESCRIPTION]. Request: 'Calculate the 3-month moving average of sales for each product category, but only include categories where the total sales volume in the previous month was greater than the current month, and rank them by the percentage drop.' Provide the SQL and a brief explanation of the query execution plan.