🏠 Ana Sayfa
Benchmarklar
📊 Tüm Benchmarklar 🦖 Dinozor v1 🦖 Dinozor v2 ✅ To-Do List Uygulamaları 🎨 Yaratıcı Serbest Sayfalar 🎯 FSACB - Nihai Gösteri 🌍 Çeviri Benchmarkı
Modeller
🏆 En İyi 10 Model 🆓 Ücretsiz Modeller 📋 Tüm Modeller ⚙️ Kilo Code
Kaynaklar
💬 Prompt Kütüphanesi 📖 YZ Sözlüğü 🔗 Faydalı Bağlantılar
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.