Описание тега qoq
ColdFusion Query of Queries (QoQ) is used to re-query the result of one or more original queries.
ColdFusion Query of Queries (QoQ) let you query the results of an existing database query. A QoQ uses the <cfquery>
and is very similar to querying against a database. Example:
<cfquery name="this.qryReportDefGroup" dbtype="query">
SELECT SourceTypeID, cyclelocked
FROM request.stData.qryReportDefGroup
</cfquery>
The FROM statement in this case references a variable that is a part of a structure. The SQL inside of a QoQ is specific to ColdFusion. The results of a QoQ can be used in yet another QoQ.
You can also query a non-database query object, for example, the results of a cfftp directory listing. src: http://www.quackit.com/coldfusion/tutorial/coldfusion_query_of_queries.cfm