query-database-turbo
Answer simple factual database questions using a single SQL query. Returns raw numbers or rows quickly without multi-step analysis.
Instructions
When to Use (Natural-Language Heuristics)
Because the model sees only the user's question and minimal schema hints, Turbo Mode should activate automatically whenever the request exhibits every one of these surface-level cues. Each cue corresponds to a first-principles driver of SQL complexity that the model can infer without deep schema knowledge:
Signal in the User's Question | Why It Indicates Turbo Is Safe |
Single Factual Verb — verbs like "count," "list," "show," "sum," "average," or "max/min," used once. | One aggregate or projection keeps the SQL to a single |
At Most One Qualifier Clause — a lone filter such as a date range, status, or simple equality ("where status = 'active'"). | Few filters avoid nested logic or subqueries. |
No Comparative Language — absent words like "versus," "compare," "trend," "change over time," "prior year," "by each," etc. | Comparisons imply multiple groupings, time windows, or self-joins. |
No Multi-Dimensional Grouping Phrases — avoids "by region and product," "per user per month," "split across categories." | Multiple dimensions require complex |
Mentions One Table-Like Concept — either explicitly ("in | Referencing several entities hints at join logic the model can't verify quickly. |
Requests Raw IDs or a Small Top-N List — e.g., "give me the top 5 order IDs." | The result set will be tiny, so execution latency is dominated by query planning—not data transfer. |
No Need for Explanation or Visualization — the user asks only for the numbers or rows, not "explain why" or "graph this." | Generating narrative or charts costs tokens and time; Turbo avoids it. |
Quick mental check: Could you answer this with a single short sentence and a single-line SQL query template? If yes, Turbo Mode is appropriate.
Limitations
Unsuitable for multi-step or exploratory workflows
May miss domain nuances captured in the standard reasoning path
Provides limited explanation and simplistic visuals
Effective Prompts
"How many active users signed up last week?"
"List the five most expensive orders."
"Show the total revenue for March 2025."
"What is the average session length today?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| celpApiKey | No | ||
| databaseConfig | No | ||
| databaseConnectionId | No |