Skip to content
Learn › Clean and shape data: open the docs menu

Ask your data in plain words and get the SQL

All plans · Project Editor or Project Admin · Updated 8 Nov 2026

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

Describe your transformation menu on AI Powered, with Ask in plain words first
AI Powered › Ask in plain words

Step 1 of 5: Open Ask in plain words

What's in the Ask in plain words panel

ElementWhat it does
Prompt box ("Describe what you want to query...")Where you say what you want
GenerateWrites and tests the query. Turns on once you type a request; reads Generating... while it works.
Status lineShows progress while the query is written, such as "Writing SQL query to match your request..."
Understood asHow Mammoth read your request, in plain words
Show the SQL / Hide the SQLUnfolds or folds the query. It starts folded.
The SQL it will runThe SQL editor. Press Ctrl+Space for View and column name suggestions.
Insert SnippetAdds saved SQL to the query (shown with the SQL)
CancelCloses the panel without changes
ApplyAdds the query to the pipeline as a task and runs it
Apply dropdownAdd 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.
Was this page helpful?

Something wrong? support@mammoth.io