At the moment any query object only contains the template where it has been executed. The line number unfortunately is not available. So if I would like to use the same name for a query, I have to guess from the SQL which one it is.
It might be necessary to add it to the query object in general. This is the information that is stored ATM:
can you close this?
The issue was fixed. So, I close the ticket.