Sql Sgp Observable
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
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions