> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Query

Run a query on the Hydrolix platform.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Hydrolix documentation](https://docs.hydrolix.io/latest/openapi/query/#tag/query/POST/query).

## Parameters

| Parameter | Description |
| - | - |
| Admin Comment | An admin comment to add to the query. **Note:** This field is automatically populated by Superset or Grafana to track user activity. |
| Comment | A comment to add to the query. |
| Max Concurrent Partitions | The maximum number of partitions each query process can read simultaneously. |
| Max Execution Time | The maximum execution time for the query, in seconds. Use `0` for no limit. |
| Max Partitions | The maximum number of partitions query is allowed to access. |
| Max Peers | The maximum number of peers for the query. |
| Max Time Range | The maximum time range allowed by the query, in seconds. Only applies when timestamp filtering is specified in the WHERE clause. |
| Output File Enabled | Select to save the query's result to a file on your cloud storage. |
| Output File Name | The filename to save the query result to in cloud storage. Overwrites the file if it already exists. |
| Output Format | The format to save the query result in. |
| Pool Name | The pool to run the query on. If not specified, the query runs on all available peers. |
| Query | The SQL query to run. |

## Example Output

```json theme={"dark"}
{
	"meta": [
		{
			"name": "string",
			"type": "string"
		}
	],
	"data": "string",
	"rows": 1,
	"statistics": {
		"elapsed": 1,
		"rows_read": 1,
		"bytes_read": 1
	}
}
```

## Workflow Library Example

[Run Query with Hydrolix and Send Results Via Email](https://library.blinkops.com/workflows/run-query-with-hydrolix-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/run-query-with-hydrolix-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/run-query-with-hydrolix-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.