Query Audit
Query Audit is a one-stop tool for auditing and analyzing queries that have run in the warehouse. Use it to find poor-performing queries, investigate trends, and diagnose individual problems.
Filter historical queries in the list view, and use the List Selection to add more dimensions to your filter.
Click a Query ID to open the query detail page. If profile capture was enabled, the profile is available there.

Note Non-query statements and failed statements do not have a Query ID.