<freeMetaDataQuery>
     <sqlQuery>
     <distinct>false</distinct>
     <limit>0</limit>
         <select>
             <dataStreamElementName>orderfact_status</dataStreamElementName>
             <dataStreamName>orderfact</dataStreamName>
         </select>
<formula>
<name>min</name>
<script>0</script>
<dataStreamNames></dataStreamNames>
</formula>
         <agg>
             <function>SUM</function>
             <formula>false</formula>
             <col>orderfact_totalprice</col>
             <dataStreamName>orderfact</dataStreamName>
             <outputName>orderfact_totalprice</outputName>
         </agg>
         <agg>
             <function>SUM</function>
             <formula>true</formula>
             <col>PUBLIC.orderfact.totalprice*1.5</col>
             <dataStreamName>orderfact</dataStreamName>
             <outputName>max</outputName>
         </agg>
         <agg>
             <function>SUM</function>
             <formula>true</formula>
             <col>PUBLIC.orderfact.totalprice*0.6</col>
             <dataStreamName>orderfact</dataStreamName>
             <outputName>min_expected</outputName>
         </agg>
         <agg>
             <function>SUM</function>
             <formula>true</formula>
             <col>PUBLIC.orderfact.totalprice*1.4</col>
             <dataStreamName>orderfact</dataStreamName>
             <outputName>max_expected</outputName>
         </agg>
         <orderBy>
             <dataStreamElementName>orderfact_totalprice</dataStreamElementName>
             <dataStreamName>orderfact</dataStreamName>
          </orderBy>
         <orderBy>
             <dataStreamElementName>orderfact_status</dataStreamElementName>
             <dataStreamName>orderfact</dataStreamName>
          </orderBy>
         <orderByForm>
<name>min</name>
<script>0</script>
<dataStreamNames></dataStreamNames>
         </orderByForm>
         <orderByAgg>
             <agg>max</agg>
             <pos>1</pos>
         </orderByAgg>
         <orderByAgg>
             <agg>min_expected</agg>
             <pos>2</pos>
         </orderByAgg>
         <orderByAgg>
             <agg>max_expected</agg>
             <pos>3</pos>
         </orderByAgg>
         <additionalResource>
++++++++%3CcomplexFilter%3E%0A++++++++++++%3Cname%3Estatus_ok%3C%2Fname%3E%0A++++++++++++%3CdataStreamElement%3Eorderfact_status%3C%2FdataStreamElement%3E%0A++++++++++++%3CdataStream%3Eorderfact%3C%2FdataStream%3E%0A++++++++++++%3Coperator%3E%3D%3C%2Foperator%3E%0A++++++++++++%3Cvalue%3EShipped%3C%2Fvalue%3E%0A++++++++%3CgroupNames%3E%3C%2FgroupNames%3E%0A++++++++%3C%2FcomplexFilter%3E%0A>
         </additionalResource>
     </sqlQuery>
</freeMetaDataQuery>
