<?xml version="1.0"?>
<!-- sample data query specification instance for the datamanager library -->
<dq:dataquery 
	xmlns:dq="eml://ecoinformatics.org/dataquery" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="eml://ecoinformatics.org/dataquery dataquery.xsd ">
	<union>
		<query>
			<selection>
				<datapackage id="leinfelder.835.3">
					<entity id="leinfelder.835.3">
						<attribute index="0">
							<pathexpr label="title">//course/lom/general/title/string</pathexpr>
						</attribute>					
					</entity>
				</datapackage>
				<datapackage id="leinfelder.835.3">
					<entity index="0">
						<attribute index="0"/>
						<attribute index="1"/>
					</entity>
				</datapackage>
				<datapackage id="leinfelder.836.1">
					<entity id="leinfelder.836.1">
						<attribute index="0">
							<pathexpr label="qId">//assessment/section/item/@ident</pathexpr>
						</attribute>
						<attribute index="1">
							<pathexpr label="qTitle">//assessment/section/item/@title</pathexpr>
						</attribute>
						<attribute index="2">
							<pathexpr label="qLabel">//assessment/section/item/presentation/@label</pathexpr>
						</attribute>
					</entity>
				</datapackage>
			</selection>
			<where>
				<condition type="join">
					<left>
						<datapackage id="leinfelder.835.3">
							<entity index="0">
								<attribute index="1"/>
							</entity>
						</datapackage>
					</left>
					<operator>=</operator>
					<right>
						<datapackage id="leinfelder.836.1">
							<entity id="leinfelder.836.1">
								<attribute index="0">
									<pathexpr label="qid">//assessment/section/item/@ident</pathexpr>
								</attribute>					
							</entity>
						</datapackage>
					</right>
				</condition>
			</where>
		</query>

		<query>
			<selection>
				<datapackage id="leinfelder.835.3">
					<entity id="leinfelder.835.3">
						<attribute index="0">
							<pathexpr label="title">//course/lom/general/title/string</pathexpr>
						</attribute>					
					</entity>
				</datapackage>
				<datapackage id="leinfelder.835.3">
					<entity index="0">
						<attribute index="0"/>
						<attribute index="1"/>
					</entity>
				</datapackage>
				<datapackage id="leinfelder.837.1">
					<entity id="leinfelder.837.1">
						<attribute index="0">
							<pathexpr label="qid">//assessment/section/item/@ident</pathexpr>
						</attribute>
						<attribute index="1">
							<pathexpr label="qTitle">//assessment/section/item/@title</pathexpr>
						</attribute>
						<attribute index="2">
							<pathexpr label="label">//assessment/section/item/presentation/@label</pathexpr>
						</attribute>
					</entity>
				</datapackage>
			</selection>
			<where>
				<condition type="join">
					<left>
						<datapackage id="leinfelder.835.3">
							<entity index="0">
								<attribute index="1"/>
							</entity>
						</datapackage>
					</left>
					<operator>=</operator>
					<right>
						<datapackage id="leinfelder.837.1">
							<entity id="leinfelder.837.1">
								<attribute index="0">
									<pathexpr label="qid">//assessment/section/item/@ident</pathexpr>
								</attribute>					
							</entity>
						</datapackage>
					</right>
				</condition>
			</where>
		</query>
	</union>	

</dq:dataquery>