Questions
Queries paired with visualizations — the core building block of MinusX
A question is the fundamental unit of analysis in MinusX. Each question combines a query, a visualization, and optional parameters.

Query Editor
The query editor is built on Monaco Editor (the same editor that powers VS Code):
- Syntax highlighting — keywords, strings, numbers, and comments
- Autocomplete — table and column names from your connected databases
- Keyboard shortcuts —
Cmd+Enter/Ctrl+Enterto execute - Multi-line editing — complex queries with proper formatting
The AI chat sidebar can build queries from scratch, modify existing ones, explain what a query does, or fix errors.
AI-powered questions
The agent can help at every step:
- "What are the top 10 customers by revenue?" → builds and runs the query
- "Add a date filter" → adds a
:start_dateparameter - "Show this as a bar chart by month" → configures the visualization
- "Break it down by region" → modifies the query with a GROUP BY