> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/search-and-investigate/application-queries/application-query-examples.md).

# Application Query Examples

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Description</strong></td><td><strong>RQL</strong></td></tr><tr><td>Find all the applications that have a business criticality.</td><td><pre><code>application where business.criticality = 'all'
</code></pre></td></tr><tr><td>Find applications that have a specific business criticality.</td><td><pre><code>application where business.criticality = 'high'
</code></pre></td></tr><tr><td>Find all the applications that are deployed in the stage environment..</td><td><pre><code>application where environment = 'stage'
</code></pre></td></tr><tr><td>Find all the applications with a specific name. Note that the application names are not case-sensitive.</td><td><pre><code>application where name = 'Devops'
</code></pre></td></tr><tr><td>Find all the applications belonging to the same designated business owner.</td><td><pre><code>application where owner = 'Cortex'
</code></pre></td></tr><tr><td>Find all applications, their impacted assets, and findings using <code>finding.type</code> and <code>finding.name</code> attributes</td><td><pre><code>application where business.criticality = 'high' AND environment = 'stage' AND owner = 'Cortex' with : (asset with : finding where finding.type IN ( 'INTERNET_EXPOSURE' ) AND finding.name CONTAINS ALL ( 'Aws Api Gateway Endpoints Without Client Certificate Authentication' ) )
</code></pre></td></tr><tr><td>Find all impacted applications, their assets, and vulnerabilities.</td><td><pre><code>application where business.criticality = 'all' AND environment = 'stage' AND name = 'Devops' with : (asset with : vuln where cve.id IN ( 'CVE-2016-0718' ) AND cvss.score &#x26;gt; 9.1 AND severity IN ( 'Critical', 'High' ) )
</code></pre></td></tr><tr><td>Identify if one of the assets is vulnerable to CVE-XXXX-XXXX.</td><td><pre><code>application where business.criticality = 'all' AND environment = 'stage' AND name = 'Devops' with : (asset with : vuln where cve.id IN ( 'CVE-2016-0718' ))
</code></pre></td></tr><tr><td>Find all the vulnerabilities with a CVSS score greater than 9.1.</td><td><pre><code>application where business.criticality = 'all' AND environment = 'stage' AND name = 'Devops' with : (asset with : vuln where cvss.score &#x26;gt; 9.1) )
</code></pre></td></tr><tr><td>Find all vulnerabilities with critical and high severity.</td><td><pre><code>application where business.criticality = 'all' AND environment = 'stage' AND name = 'Devops' with : (asset with : vuln where severity IN ( 'Critical', 'High' ) )
</code></pre></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.prismacloud.io/content-collections/search-and-investigate/application-queries/application-query-examples.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
