Query (-Q or -QUERY)
Use the Query adapter command setting (-QUERY) for a source to specify the name of a query in an .mdq file as specified using the Database/Query File adapter command (-MDQ) and the database defined by the Database Name adapter command (-DBNAME).
-QUERY query_name
The name of the query (query_name) you supply is case-sensitive. Also, if the Query adapter command (-QUERY) is specified, it overrides the value in the DatabaseQueryFile > Query input card setting.