بنقرة واحدة
sql-writing
Construct a SQL query that correctly answers a natural-language question grounded in the actual database.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Construct a SQL query that correctly answers a natural-language question grounded in the actual database.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | sql-writing |
| description | Construct a SQL query that correctly answers a natural-language question grounded in the actual database. |
Text-to-SQL is harder than it looks, and most of the difficulty is interpretation. Before a single clause is written, the question has to be read precisely, the database has to be understood as it actually is, and the possible readings of the question have to be checked against the data. Most mistakes are baked in at interpretation time — a word misread, a scope assumed, a grain inferred — and no amount of SQL polish will fix them afterwards.
SELECT list is part of the spec, not an afterthought.You have schema-inspection tools (list_schemas, list_tables, list_columns, get_distinct_values, search_dimension_values) and data-query tools (query_database, python_interpreter). Use them freely — each query is cheap compared to a wrong answer.
Consult CLAUDE.md for tool signatures and Snowflake syntax rules.