# Example

The following example of a SQL query shows how to include a parameter. The example queries the **employeeList** data service for records, and when the data service transformation is executed, any use of the parameter **employeeRegion** in it will be substituted with the value *USA EAST*. This parameter can be in any transformation step that allows variable or parameter substitution.

You can also assign a value to the parameter in the Connection Properties window.

Using the following sample syntax:

```sql
SELECT * FROM '<*data service name*>' WHERE PARAMETER('<*parameter\_name*>') = '<*parameter\_value*>'
```

The following query would be used for our example:

```sql
view sourceprint
   SELECT * FROM '*employeeList*' WHERE PARAMETER('*employeeRegion*')='*USA EAST*'
```


---

# 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.pentaho.com/pdia-data-integration/10.2-data-integration/advanced-topics-pentaho-data-integration-overview/pentaho-data-services/share-a-pentaho-data-service-with-others/query-a-pentaho-data-service/example.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.
