Prompt

0 copies · 0 said it worked

1004658151l@1004658151l·
Data & Finance· Chat UI

Turn plain-English data requests into SQL queries

A structured role prompt that converts a natural language data requirement and table schema into a SQL query compatible with the chosen database system, including JOIN, WHERE, GROUP BY, and ORDER BY handling.

People use this for

  • sql query generator from english
  • natural language to sql
  • write sql from plain english request
  • i need a sql query for my table
  • turn my data question into a query
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from SQL Query Generator from Natural Language . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Prompt

{
  "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"
  }
}

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.