🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
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.