Where to find the saved queries on ubuntu

I have AMI instance
and I want to get the queries and dashboards per user from mu instance
as the interface is not working anymore

So what is the directory where i can I find the queries ?

Queries are stored in Redash’s postgres database on the queries table.