Ask your data in plain words and get the SQL
Ask in plain words turns a request like "total net revenue by property, highest first" into SQL on your View, tests it, and adds it to your pipeline as a task. You don't need to read the SQL, but it's there to check or edit. It was called AI SQL Query before November 2026.
Ask in plain words step by step

Step 1 of 5: Open Ask in plain words
What's in the Ask in plain words panel
| Element | What it does |
|---|---|
| Prompt box ("Describe what you want to query...") | Where you say what you want |
| Generate | Writes and tests the query. Turns on once you type a request; reads Generating... while it works. |
| Status line | Shows progress while the query is written, such as "Writing SQL query to match your request..." |
| Understood as | How Mammoth read your request, in plain words |
| Show the SQL / Hide the SQL | Unfolds or folds the query. It starts folded. |
| The SQL it will run | The SQL editor. Press Ctrl+Space for View and column name suggestions. |
| Insert Snippet | Adds saved SQL to the query (shown with the SQL) |
| Cancel | Closes the panel without changes |
| Apply | Adds the query to the pipeline as a task and runs it |
| Apply dropdown | Add to Pipeline: adds the task without running it |
If your View's pipeline doesn't run on its own, Add to Pipeline is the main button and Apply is in the dropdown.
Check what Mammoth understood
The Understood as line under the prompt says how Mammoth read your request, for example "Understood as: Groups rows by property, ... and orders properties from highest to lowest total net revenue." If it isn't what you meant, rephrase and click Generate again. For the other notes and warnings the panel can show, see Fix Ask in plain words warnings and errors.
Preview, read and edit the SQL
Preview above the panel shows the result before you apply. A generated query is previewed straight away; a query you type is previewed once you pause typing and it looks complete (Preview a task).
Click Show the SQL to read it. Generated SQL uses your View's name and column names exactly as they are, in double quotes so spaces and special characters work. For "Total net revenue by property, highest first", Mammoth wrote:
SELECT MODE(TRIM("Property")) AS "Property", SUM("Net Revenue") AS "Total Net Revenue"
FROM "View 1"
GROUP BY LOWER(TRIM("Property"))
ORDER BY "Total Net Revenue" DESC
It grouped "Braga" and " braga " together, which the Understood as line says in words. Edit the SQL as much as you like before applying: nothing locks generated SQL. To write the query yourself or insert snippets, see Write SQL by hand and reuse snippets.
Apply the query or add it without running
Apply adds the task and runs it now; Add to Pipeline in the dropdown adds it without running, and it runs when you apply the pending pipeline changes. The task appears as a card you can reorder, edit, duplicate, suspend or restore like any other. Its position sets which data it queries: placed after a filter, it queries the filtered data, not the original source.
Tips for better results
- Name columns exactly, for example "the Transaction Type column" rather than "type".
- Say the aggregation: "total", "count" or "average".
- Be specific. Instead of "sales by region", try "total quantity sold by region, highest first".
- If no column exists for your idea, describe the calculation, for example "revenue as quantity times price".
- Read the Understood as line before Apply.
Related
- Write SQL by hand and reuse snippets: your own DuckDB SQL and saved snippets.
- Use AI on your columns: classify or rewrite values row by row.
- Calculate with formulas: SQL and formula expressions in Math Function.
- Fix Ask in plain words warnings and errors: every note and message.
Something wrong? support@mammoth.io


