🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
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.