Bq Generate
Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.
BigQuery Query Generation
Generate optimized BigQuery SQL using the bigquery-query-generation skill.
Instructions
-
Determine what SQL to generate from the argument or current conversation context. If neither provides a clear description, ask the user what data they need.
-
Gather schema context if available. Check whether the user has mentioned specific table names, column names, or project/dataset references. If not, use descriptive placeholders and state assumptions.
-
Generate the SQL using the
bigquery-query-generationskill. Proactively avoid all 11 anti-patterns from thebigquery-optimizationskill while generating. -
Output using this format:
## Generated Query (fenced SQL code block) ## Assumptions - Schema, data type, and business logic assumptions. - Placeholder table/column names that need replacing. ## Anti-Patterns Proactively Avoided - List only the anti-patterns that were relevant to this query and actively avoided. ## Customization Notes - Suggestions for adapting the query: filters, additional columns, partitioning, etc. -
Prefer generating with stated assumptions over asking too many clarifying questions. Generate a working query first, then offer to refine.