<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://biosamples.geomar.de/webinterface/1788970272/webcaosdb.xsl" ?>
<Response srid="53144b5b-e912-4db3-a431-056982864f4e" timestamp="1789529816750" baseuri="https://biosamples.geomar.de" count="0">
  <noscript>
    <h1>Please enable JavaScript!</h1>
  </noscript>
  <UserInfo>
    <Roles>
      <Role>anonymous</Role>
    </Roles>
  </UserInfo>
  <Query string="FIND RECORD &quot;Sample&quot; WITH (Campaign = &quot;AL592&quot;)" results="0" cached="false" etag="9982793e-9f4c-4b43-a915-2cff2c81b754">
    <ParseTree>(cq FIND  (role RECORD ) (entity (double_quoted " Sample "))   (entity_filter (which_exp WITH ) ( (filter_expression (pov (property Campaign  ) =   (value (atom (double_quoted " AL592 "))))) )) &lt;EOF&gt;)</ParseTree>
    <Role>RECORD</Role>
    <Entity>Sample</Entity>
    <Filter>
      <POV property="Campaign" operator="=" value="AL592">
        <sourceSet>37388fb14ee7d5293a6b579a0a7f9b84</sourceSet>
        <sourceSetCountBefore>83705</sourceSetCountBefore>
        <propertiesTableCountBefore>252</propertiesTableCountBefore>
        <initPOVPropertiesTableStmt2 />
        <initPOVPropertiesTableStmt1>INSERT IGNORE INTO `b1ba9e1b997b4d6f1600916cbac6c5bf` (id, id2, domain) SELECT entity_id, domain_id, 0 FROM name_data WHERE value = ?;</initPOVPropertiesTableStmt1>
        <propertiesTable>b1ba9e1b997b4d6f1600916cbac6c5bf</propertiesTable>
        <refIdsTable>ef4bf44fa2106c975d52b8273e9e885e</refIdsTable>
        <applyPOVIntermediateResultSet>a1e7d36dc0b68ffe761cb8df44d97b59</applyPOVIntermediateResultSet>
        <applyPOVStmt2>DELETE FROM `37388fb14ee7d5293a6b579a0a7f9b84` WHERE NOT EXISTS (SELECT 1 FROM `a1e7d36dc0b68ffe761cb8df44d97b59` AS data WHERE data.id=`37388fb14ee7d5293a6b579a0a7f9b84`.`id` LIMIT 1)</applyPOVStmt2>
        <applyPOVStmt1>INSERT IGNORE INTO `a1e7d36dc0b68ffe761cb8df44d97b59` (id) SELECT DISTINCT entity_id AS id FROM (SELECT DISTINCT domain_id, entity_id, property_id FROM `text_data` AS subdata WHERE  subdata.real_property_id IN (SELECT distinct id FROM `b1ba9e1b997b4d6f1600916cbac6c5bf`)  AND  subdata.value = ? 
UNION ALL SELECT DISTINCT domain_id, entity_id, property_id FROM `name_data` AS subdata WHERE  subdata.real_property_id IN (SELECT distinct id FROM `b1ba9e1b997b4d6f1600916cbac6c5bf`)  AND  subdata.value = ? 
UNION ALL SELECT DISTINCT domain_id, entity_id, property_id FROM `enum_data` AS subdata WHERE  subdata.real_property_id IN (SELECT distinct id FROM `b1ba9e1b997b4d6f1600916cbac6c5bf`)  AND  subdata.value = ? 
UNION ALL SELECT DISTINCT domain_id, entity_id, property_id FROM `reference_data` AS subdata WHERE  subdata.real_property_id IN (SELECT distinct id FROM `b1ba9e1b997b4d6f1600916cbac6c5bf`)  AND EXISTS
                        (SELECT 1 FROM `ef4bf44fa2106c975d52b8273e9e885e` AS refIdsTable WHERE subdata.value=refIdsTable.id LIMIT 1) AND subdata.status != 'REPLACEMENT') as data</applyPOVStmt1>
        <replTblStmt2 />
        <replTblStmt1 />
        <applyPOVIntermediateResultSetCount>0</applyPOVIntermediateResultSetCount>
        <refIdsTableCountBefore>0</refIdsTableCountBefore>
      </POV>
    </Filter>
  </Query>
</Response>
