SAP queries automatically creates a ABAP program when they are saved and generated. These auto generated programs starts with AQ. If you come across a report transaction with a long program name similar to AQ====****====**** this could be a program generated by a SAP query.
Name should be in the following format:
First 2 letters of report name: AQ
Report+4(12) = User group.
Report+16(14) = Query name
But to easily find the query name, infoset name and user group of these programs you can make use of function module “RSAQ_DECODE_REPORT_NAME“.
Go to transaction se37 and execute the function module giving the program name.