# Recent Queries

You can see all the recent queries that have been run on a database in one place to easily identify long-running and expensive queries.

Go to **Settings.**

![](/files/WDzYRlbf6RS6MliLAZzZ)

Click on the database name in the sidebar. You'll be able to see a [Users](/data-source-management/connect-data-source-users-to-select-star.md) tab and a Recent Queries tab.

![](/files/-Mh0HBsPt9xJZ0J6CSrM)

The **Recent Queries** tab will show any query run on any schema or table which has been loaded into Select Star. It will not show queries for tables or schemas that have not been loaded into Select Star or that have been [removed](/data-source-management/manage-data-sources.md#deleting-tables-and-reports) from Select Star.

You can click on these queries and get more detailed information the same way you would from a database table page.

![](/files/-Mh0IuDsYTOE6iMOikub)

Clicking on a table in the right sidebar in the query details page will take you to that table page.


---

# 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.selectstar.com/data-source-management/recent-queries.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.
