<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://biosamples.geomar.de/webinterface/1796498281/webcaosdb.xsl" ?>
<Response srid="2689e943-c526-4e8a-a1d0-2d9b31976f69" timestamp="1796512816365" 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;AL573&quot;)" results="0" cached="false" etag="d274cf55-f437-4cb2-b59e-cbe3338a4b47">
    <ParseTree>(cq FIND  (role RECORD ) (entity (double_quoted " Sample "))   (entity_filter (which_exp WITH ) ( (filter_expression (pov (property Campaign  ) =   (value (atom (double_quoted " AL573 "))))) )) &lt;EOF&gt;)</ParseTree>
    <Role>RECORD</Role>
    <Entity>Sample</Entity>
    <Filter>
      <POV property="Campaign" operator="=" value="AL573">
        <sourceSet>9502b47878a3826e30c63b07d5faf7a7</sourceSet>
        <sourceSetCountBefore>98292</sourceSetCountBefore>
        <propertiesTableCountBefore>252</propertiesTableCountBefore>
        <initPOVPropertiesTableStmt2 />
        <initPOVPropertiesTableStmt1>INSERT IGNORE INTO `6409e914f30be16aff5198d7e47b290f` (id, id2, domain) SELECT entity_id, domain_id, 0 FROM name_data WHERE value = ?;</initPOVPropertiesTableStmt1>
        <propertiesTable>6409e914f30be16aff5198d7e47b290f</propertiesTable>
        <refIdsTable>b068917c10dc303fd9e3fedc48bb07a0</refIdsTable>
        <applyPOVIntermediateResultSet>19af0a153acc41a00a219ec2853e9682</applyPOVIntermediateResultSet>
        <applyPOVStmt2>DELETE FROM `9502b47878a3826e30c63b07d5faf7a7` WHERE NOT EXISTS (SELECT 1 FROM `19af0a153acc41a00a219ec2853e9682` AS data WHERE data.id=`9502b47878a3826e30c63b07d5faf7a7`.`id` LIMIT 1)</applyPOVStmt2>
        <applyPOVStmt1>INSERT IGNORE INTO `19af0a153acc41a00a219ec2853e9682` (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 `6409e914f30be16aff5198d7e47b290f`)  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 `6409e914f30be16aff5198d7e47b290f`)  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 `6409e914f30be16aff5198d7e47b290f`)  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 `6409e914f30be16aff5198d7e47b290f`)  AND EXISTS
                        (SELECT 1 FROM `b068917c10dc303fd9e3fedc48bb07a0` 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>
