How to find out database for a Kibana query hash

How do I find out the database that a Kibana query hash refers to?

I'm not sure what you mean by "Kibana query hash", could you provide an example? Are you talking about an index pattern?