The easiest way to create new custom queries is by basing them on existing templates.
To create a custom query
Click Add new query in the upper left side of the page. The Query Create page displays.
Click the query template under the cloud application for which you want to create a query. The results for that query are displayed.
Save your query by selecting Save as… from the Query dropdown in the upper left area of the page.