How to query from PostgreSQL data source?

I have since changed my code and selected custom columns, but the previous problem is still there. The Grafana Query name is missing in the output. How do I ensure that the query name is Present?

Updated code:

In Grafana, the table name is shown as the last column header, so the Query name is missing as I explained above.