    @Test
    public void testCR24() throws Exception {

        String query = "select  \n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value/magnitude as max_systolic,\n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude as max_diastolic,\n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value/magnitude as min_systolic,\n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude as min_diastolic,\n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value/magnitude as avg_systolic,\n" +
                "    o_bp/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude as avg_diastolic\n" +
                "    from EHR e\n" +
                "    contains COMPOSITION a contains OBSERVATION o_bp[openEHR-EHR-OBSERVATION.blood_pressure.v1]\n";

        records = queryEngine.perform(query);
        assertNotNull(records);
        assertFalse(records.isEmpty());
        System.out.print(records);
    }