<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://biosamples.geomar.de/webinterface/1784132013/webcaosdb.xsl" ?>
<Response srid="73a01692-14ec-421d-a56f-9366c33bbb22" timestamp="1784666629627" 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="391d895e-09cd-47b4-b20e-9d09e979ba2d">
    <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>e76e011ca57e095d5b9159f4d0c5466f</sourceSet>
        <sourceSetCountBefore>81445</sourceSetCountBefore>
        <propertiesTableCountBefore>252</propertiesTableCountBefore>
        <initPOVPropertiesTableStmt2 />
        <initPOVPropertiesTableStmt1>INSERT IGNORE INTO `52182fb8043e0babdb46f27108ab5e12` (id, id2, domain) SELECT entity_id, domain_id, 0 FROM name_data WHERE value = ?;</initPOVPropertiesTableStmt1>
        <propertiesTable>52182fb8043e0babdb46f27108ab5e12</propertiesTable>
        <refIdsTable>b70ee0f23c06c320a9f8ae689b47317f</refIdsTable>
        <applyPOVIntermediateResultSet>315c6de84830923f2081695968f32076</applyPOVIntermediateResultSet>
        <applyPOVStmt2>DELETE FROM `e76e011ca57e095d5b9159f4d0c5466f` WHERE NOT EXISTS (SELECT 1 FROM `315c6de84830923f2081695968f32076` AS data WHERE data.id=`e76e011ca57e095d5b9159f4d0c5466f`.`id` LIMIT 1)</applyPOVStmt2>
        <applyPOVStmt1>INSERT IGNORE INTO `315c6de84830923f2081695968f32076` (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 `52182fb8043e0babdb46f27108ab5e12`)  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 `52182fb8043e0babdb46f27108ab5e12`)  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 `52182fb8043e0babdb46f27108ab5e12`)  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 `52182fb8043e0babdb46f27108ab5e12`)  AND EXISTS
                        (SELECT 1 FROM `b70ee0f23c06c320a9f8ae689b47317f` 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>
