<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://biosamples.geomar.de/webinterface/1791987903/webcaosdb.xsl" ?>
<Response srid="9f334f25-6e61-4a6e-af2e-9e052f649c9d" timestamp="1792565911145" 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;AL571&quot;)" results="0" cached="false" etag="400b935a-7744-4330-8a8b-a0cd00a4bb76">
    <ParseTree>(cq FIND  (role RECORD ) (entity (double_quoted " Sample "))   (entity_filter (which_exp WITH ) ( (filter_expression (pov (property Campaign  ) =   (value (atom (double_quoted " AL571 "))))) )) &lt;EOF&gt;)</ParseTree>
    <Role>RECORD</Role>
    <Entity>Sample</Entity>
    <Filter>
      <POV property="Campaign" operator="=" value="AL571">
        <sourceSet>a6ba88a3c2a7527c37f5fb7955f404d6</sourceSet>
        <sourceSetCountBefore>95956</sourceSetCountBefore>
        <propertiesTableCountBefore>252</propertiesTableCountBefore>
        <initPOVPropertiesTableStmt2 />
        <initPOVPropertiesTableStmt1>INSERT IGNORE INTO `6f6313292cf187bcdb84082e95f94c46` (id, id2, domain) SELECT entity_id, domain_id, 0 FROM name_data WHERE value = ?;</initPOVPropertiesTableStmt1>
        <propertiesTable>6f6313292cf187bcdb84082e95f94c46</propertiesTable>
        <refIdsTable>281cce01a148db4c6d4ded996f0f8738</refIdsTable>
        <applyPOVIntermediateResultSet>b8550c56d51c18273426e2db8556fc1e</applyPOVIntermediateResultSet>
        <applyPOVStmt2>DELETE FROM `a6ba88a3c2a7527c37f5fb7955f404d6` WHERE NOT EXISTS (SELECT 1 FROM `b8550c56d51c18273426e2db8556fc1e` AS data WHERE data.id=`a6ba88a3c2a7527c37f5fb7955f404d6`.`id` LIMIT 1)</applyPOVStmt2>
        <applyPOVStmt1>INSERT IGNORE INTO `b8550c56d51c18273426e2db8556fc1e` (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 `6f6313292cf187bcdb84082e95f94c46`)  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 `6f6313292cf187bcdb84082e95f94c46`)  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 `6f6313292cf187bcdb84082e95f94c46`)  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 `6f6313292cf187bcdb84082e95f94c46`)  AND EXISTS
                        (SELECT 1 FROM `281cce01a148db4c6d4ded996f0f8738` 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>
