> ## 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 LINQ query.

<Note>
  External Documentation

  To learn more, visit the [Devo documentation](https://docs.devo.com/space/latest/95128301/Running+queries+with+the+Query+API#POST-%C2%A0-/query).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                           |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | From             | The start date.                                                                                                                                                                                                                       |
  | Query            | This is the query that you want to run, expressed in LINQ. <br /><pre><code>To find the query's LINQ script in the Devo app, open the query in the `Data search` area, then choose `Query code editor` from the toolbar.</code></pre> |
  | Query ID         | This is the ID of the query that you want to run.<br /><pre><code>To find the query ID, open the query in the `Data search` area, then open the search window menu and select `Current query → Get ID`.</code></pre>                  |
  | Query Identifier | Select a method for running the query.                                                                                                                                                                                                |
  | Query Priority   | Set the query priority.                                                                                                                                                                                                               |
  | To               | The end date.                                                                                                                                                                                                                         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter     | Description                                                                                                               |
  | ------------- | ------------------------------------------------------------------------------------------------------------------------- |
  | Limit         | Maximum number of elements returned in the response.                                                                      |
  | Offset        | Position of the first element in the returned list. You will retrieve a subset of records starting with the offset value. |
  | Progress Info | Select if you want to get progress info about the requested query.                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"query": "from demo.ecommerce.data select *",
	"from": 1519645036,
	"to": 1519645136,
	"mode": {
		"type": "json"
	},
	"destination": {
		"type": "hdfs",
		"params": {
			"param1": "value1",
			"param1": "value2"
		}
	}
}
```

## Workflow Library Example

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

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/run-query-with-devo-and-send-results-via-email/canvas" />
</div>
