<cfparam name="ATTRIBUTES.query" type="query"/>
<cfif thisTag.executionMode IS "end" OR NOT thisTag.hasEndTag>
<table class="worktable">
<tr>
	<cfoutput>
		<cfloop list=#queryColumnList(ATTRIBUTES.query)# item="col">
			<th>#col#</th>
		</cfloop>
	</cfoutput>
</tr>
<cfoutput query=#ATTRIBUTES.query#>
	<tr>
		<cfloop list=#queryColumnList(ATTRIBUTES.query)# item="col">
			<td>#ATTRIBUTES.query[col]#</td>
		</cfloop>
	</tr>
</cfoutput>
</table>
</cfif>