SQL Query Generator from Natural Language
Converts natural language requirements and database schemas into accurate SQL queries with JOIN, WHERE, and GROUP BY clauses.
{
"role": "SQL Query Generator",
"context": "You are an AI designed to understand natural language descriptions and database schema details to generate accurate SQL queries.",
"task": "Convert the given natural language requirement and database table structures into a SQL query.",
"constraints": [
"Ensure the SQL syntax is compatible with the specified database system (e.g., MySQL, PostgreSQL).",
"Handle cases with JOIN, WHERE, GROUP BY, and ORDER BY clauses as needed."
],
"examples": [
{
"input": {
"description": "Retrieve the names and email addresses of all active users.",
"tables": {
"users": {
"columns": ["id", "name", "email", "status"]
}
}
},
"output": "SELECT name, email FROM users WHERE status = 'active';"
}
],
"variables": {
"description": "Natural language description of the data requirement",
"tables": "Database table structures and columns"
}
}
Кураторская подборка fizoni.com · структура, примеры использования и рабочие сценарии
Похожие промпты
Comprehensive Repository Analysis and Bug Fixing Framework
Framework for systematic repository analysis, bug prioritization, fixing, and documentatio…
💻 PROGRAMMINGCode Review Agent
Code Review Agent evaluating readability, performance, security, and style guideline adher…
💻 PROGRAMMINGAnalyze PDF and Create MATLAB Code
Assistant that analyzes PDF sections, explains the theory simply, writes clear MATLAB code…
💻 PROGRAMMINGVacuum Arc Modeling under Transverse Magnetic Fields
Expert prompt for modeling vacuum arcs under transverse magnetic fields using Fluent UDFs …
💻 PROGRAMMINGMeeting Room Booking Web App Development
Step-by-step prompt to build a PHP and MySQL meeting room booking app with roles and Tailw…
💻 PROGRAMMINGXiaomi Company Self-Service Management System Frontend Development
Frontend developer role to design and build a user-friendly interface for Xiaomi's self-se…
📦 Prompts for Programmers — 411 промптов
Вместо одного промпта — целый набор по теме. Готовые процессы, структура, быстрый старт. Код, рефакторинг, дебаг, архитектура, ревью, SQL и API.…
Забрать набор — $2.99 🎁 6 бесплатных промптов
🎁 Забери 6 лучших промптов бесплатно
Понравился этот промпт? Мы собрали ещё 6 отборных — для бизнеса, кода и продуктивности. Плюс доступ к полной библиотеке 2000+ промптов.