<?xml version="1.0" encoding="UTF-8"?>
<!--
    This is an example to query whywhere data stored in SRB using ecogrid query function.
    The example shows a metadata based query searching files which has string values of "ORIGINAL DATA SET"
    containing "World Geodetic System".
    The example can be easily expanded to search for other metadata fields.
-->
<egq:query queryId="test.1.1" system="http://knb.ecoinformatics.org"
    xmlns:egq="http://ecoinformatics.org/query-1.0.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ecoinformatics.org/query-1.0.1 ../../src/xsd/query.xsd">
    <namespace prefix="eml">eml://ecoinformatics.org/eml-2.0.0</namespace>

    <returnfield>size</returnfield>
    <returnfield>owner</returnfield>

    <title>metadata query for Eco Models</title>

    <AND>
       <condition operator="LIKE" concept="mdasCollectionName">/home/whywhere.seek%</condition>
       <condition operator="LIKE" concept="ORIGINAL DATA SET">%World Geodetic System%</condition>
    </AND>

</egq:query>