# Query Parameters

TablePlus supports adding query parameters.\
\
**1. In Comment**

You can use the comments to tell TablePlus to draw a chart, for example:\
\
\-- TablePlus BarChart x: a, y: b\
SELECT 1 as a, 2 as b;

\
This query will draw a chart base on the comment instructions. You don't need to enable it, this feature is always on by default.\
\
**2. In Queries**

By default, TablePlus disables this feature. You can change the query parameter options by clicking on the config/setting button at the bottom left of the editor and choose Query params options:

* Select/unselect **`Enable query params`** to enable/disable query parameters.
* Change query param Regex between 4 variables:
  * **`:[\w.]`**
  * **`%[\w.]+%`**
  * **`\?`**
  * **`\$\{[\w.]+\}`**

![](/files/-Lro-2JXIygh6Qac0rs2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tableplus.com/query-editor/query-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
