/*[sqlquery[*/ SELECT
assessment.assessment_identifier,
assessment_party_role.party_identifier
FROM demo.acme.assessment_result ar
JOIN demo.acme.underwriting_assessment ua ON ar.assessment_result_identifier = ua.assessment_result_identifier
JOIN demo.acme.assessment ON ar.assessment_identifier = assessment.assessment_identifier
JOIN demo.acme.assessment_party_role ON assessment_party_role.assessment_identifier = assessment.assessment_identifier
WHERE assessment_party_role.party_role_code = 'UW'
/*]sqlquery]*/