Skip to content

QUERY Mode

QUERY mode is the UI workflow for read-oriented analysis: generate SQL, inspect outputs, and export results.

  • Convert questions into SQL-oriented analysis.
  • Review results as Table, Chart, or Raw output.
  • Export data for reporting and sharing.
  1. Attach relevant schema context in Metadata Explorer or use Add Selection from a script with related metadata.
  2. Set the output format to Table, Chart, or Raw.
  3. Provide a clear prompt for the analysis.
  1. Select QUERY mode.
  2. Choose the output format.
  3. Optionally choose a chart type.
  4. Send the prompt.
  5. Review the result and export CSV or PNG when needed.

Preflight now always runs for QUERY requests to confirm table, field, filter, and grouping intent before execution.

  • Automatic: Preflight runs by default for every QUERY prompt.
  • Clarification: If Genie detects ambiguity, it asks short questions to ensure the generated SQL is correct.
  • Budget: You can control the maximum number of clarification questions in Settings > Clarification Budget > Preflight Questions.

Choose between Table, Chart, and Raw output directly from the composer.

QueryOutputSelection.png

When Chart is selected, choose a chart type before sending.

ChartOutputSelection.png

ChartResults.png

RawDataJSON.png

  • Table output: Export CSV from the result block.
  • Chart output: Copy PNG or Export PNG from chart actions.

ExportCSV.png

  • Keep schema selections tightly scoped to the request.
  • Use explicit table and field names for critical reports.
  • If results are broad, refine the prompt and rerun.
  • Validate complex logic in QUERY before moving to DATA execution.
  • Prefer smaller iterative prompts for large or complex questions.
  • Save exports with clear names for traceability.