update ISZL.T_V016_DISPT set Filter = '<lx:Criteria type="And" xmlns:lx="lexem">
    <lx:Criteria type="Or">
        <lx:Criterion type="=">
            <lx:Variable Name="mo" Level="0" />
            <lx:ConstOperand isNull="1" />
        </lx:Criterion>
        <lx:Criterion type="=">
            <lx:Path OwnerQueryLevel="0">
                <lx:StepString name="ActualMoAttachment" />
                <lx:StepString name="Mo" />
            </lx:Path>
            <lx:Variable Name="mo" Level="0" />
        </lx:Criterion>
    </lx:Criteria>
    <lx:Criterion not="1" type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="ActualMoAttachment">
                <lx:ParamHolder>
                    <lx:StepString name="CURRENT_DATE" />
                </lx:ParamHolder>
            </lx:StepString>
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.MO_ATTACHMENT" isNull="1" />
    </lx:Criterion>
    <lx:Criterion not="1" type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="ActualInsuredPolicyRecord">
                <lx:ParamHolder>
                    <lx:StepString name="CURRENT_DATE" />
                </lx:ParamHolder>
            </lx:StepString>
        </lx:Path>
        <lx:BaseObjectOperand Entity="ISZL.INSURED_POLICY_RECORD" isNull="1" />
    </lx:Criterion>
    <lx:Criterion type="=">
        <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="DateDeath" />
        </lx:Path>
        <lx:ConstOperand isNull="1" />
    </lx:Criterion>
    <lx:Criterion type="&gt;=">
        <lx:MathOperator sign="-">
            <lx:Variable Name="year" Level="0" />
            <lx:DatePart datepart="Year">
                <lx:Path OwnerQueryLevel="0">
                    <lx:StepString name="Birthday" />
                </lx:Path>
            </lx:DatePart>
        </lx:MathOperator>
        <lx:ConstOperand type="Int32">18</lx:ConstOperand>
    </lx:Criterion>
    <lx:Criteria type="Or">
        <lx:Criteria type="And">
            <lx:Criterion type="&lt;=">
                <lx:MathOperator sign="-">
                    <lx:Variable Name="year" Level="0" />
                    <lx:DatePart datepart="Year">
                        <lx:Path OwnerQueryLevel="0">
                            <lx:StepString name="Birthday" />
                        </lx:Path>
                    </lx:DatePart>
                </lx:MathOperator>
                <lx:ConstOperand type="Int32">39</lx:ConstOperand>
            </lx:Criterion>
            <lx:Criterion type="=">
                <lx:MathOperator sign="%">
                    <lx:Cast type="Int32">
                        <lx:MathOperator sign="-">
                            <lx:Variable Name="year" Level="0" />
                            <lx:DatePart datepart="Year">
                                <lx:Path OwnerQueryLevel="0">
                                    <lx:StepString name="Birthday" />
                                </lx:Path>
                            </lx:DatePart>
                        </lx:MathOperator>
                    </lx:Cast>
                    <lx:ConstOperand type="Int32">3</lx:ConstOperand>
                </lx:MathOperator>
                <lx:ConstOperand type="Int32">0</lx:ConstOperand>
            </lx:Criterion>
            <lx:CriterionChildExists not="1">
                <condition>
                    <lx:Criterion type="=">
                        <lx:Path OwnerQueryLevel="0">
                            <lx:StepString name="YEAR" />
                        </lx:Path>
                        <lx:Variable Name="year" Level="0" />
                    </lx:Criterion>
                </condition>
                <lx:Path OwnerQueryLevel="0">
                    <lx:StepString name="DispDirects" />
                </lx:Path>
            </lx:CriterionChildExists>
        </lx:Criteria>
        <lx:Criteria type="And">
            <lx:Criterion type="&gt;=">
                <lx:MathOperator sign="-">
                    <lx:Variable Name="year" Level="0" />
                    <lx:DatePart datepart="Year">
                        <lx:Path OwnerQueryLevel="0">
                            <lx:StepString name="Birthday" />
                        </lx:Path>
                    </lx:DatePart>
                </lx:MathOperator>
                <lx:ConstOperand type="Int32">40</lx:ConstOperand>
            </lx:Criterion>
            <lx:CriterionChildExists not="1">
                <condition>
                    <lx:Criterion type="=">
                        <lx:Path OwnerQueryLevel="0">
                            <lx:StepString name="YEAR" />
                        </lx:Path>
                        <lx:Variable Name="year" Level="0" />
                    </lx:Criterion>
                </condition>
                <lx:Path OwnerQueryLevel="0">
                    <lx:StepString name="DispDirects" />
                </lx:Path>
            </lx:CriterionChildExists>
        </lx:Criteria>
    </lx:Criteria>
</lx:Criteria>' 
where IDDT = 'ÄÂ4';