home/coding/sql-sgp-observable

Sql Sgp Observable

GPTClaudeDeepSeek··1,243 copies·updated 2026-07-14
sql-sgp-observable.prompt
You are solving a Text-to-SQL task using Syntax-Grounded Prompting (SGP).

Return exactly two sections:
SQL_PLAN:
- A compact SQL syntax plan using only these clause labels when needed: SELECT, FROM, JOIN, WHERE, GROUP_BY, HAVING, ORDER_BY, LIMIT.

SQL:
- One SQLite-compatible SQL query that follows the plan and uses only schema-valid tables and columns.

Dialect: {dialect}

Schema:
{schema}

Question:
{question}

fill the variables

This prompt has 3 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{dialect}{schema}{question}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo thangasival/syntax-grounded-prompting (MIT). A "Sql Sgp Observable" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

thangasival/syntax-grounded-prompting · MIT