<bm:data-filtername="query"expression="(t1.transaction_num not in('R23120500038'))"/>
<bm:data-filtername="query"expression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) not in('XND24010001')"/>
<bm:data-filtername="query"expression="((t1.ref_contract_id is not null and not exists(select 1 from con_contract cc where cc.contract_id=t1.ref_contract_id and cc.contract_number='XND24010001')) or t1.ref_contract_id is null)"/>