How to relate SQL query to a Metabase report\question?

I am using Metabase 0.45.2 version. I saw in my DB log that some users wrote a bad SQL queries. These queries are impacting the performance of the overall system. How can I find out Questions related to these SQL queries? I checked the Query table in Metabase DB, which shows encrypted text.


you should be able to see the queries in tables "query" and "query execution". Also the "report_card" table has information if the queries are saved

"Query" and "query execution" shows only the query hash, and "report card" also have queries in coded form. Can you please give me an example of how to link a query to the report/question?