```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
    <query_name>Alz-Fro-  5-Eng@17:09:40</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <panel>
        <panel_number>1</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>0</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>3</hlevel>
            <item_name>Alzheimer's dementia senile and presenile forms</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G30) Alzheime~bkfp\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Alzheimer's dementia senile and presenile forms</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>Alzheimer's disease</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G30) Alzheime~bkfp\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Alzheimer's disease</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>5</hlevel>
            <item_name>Alzheimer's disease</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neurologic Disorders (320-389)\Degenerative diseases (330-337)\(331) Other cerebral degenerations\(331-0) Alzheimer's disease\</item_key>
            <item_icon>LA</item_icon>
            <tooltip>Diagnoses \ Neurologic Disorders \ Degenerative diseases \ Other cerebral degenerations \ Alzheimer's disease</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Dementia of the Alzheimer's type, with early onset, uncomplicated</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\Psychosis (290-299)\(290) Senile and presenile organi~\(290-1) Presenile dementia\(290-10) Presenile dementia, unco~\</item_key>
            <item_icon>LA</item_icon>
            <tooltip>Diagnoses \ Mental Disorders \ Psychosis \ Senile and presenile organic psychotic conditions \ Presenile dementia \ Presenile dementia, uncomplicated</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>5</hlevel>
            <item_name>Mild cognitive impairment, so stated</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G31) Other de~tm38\(G31.8) Other~hf48\(G31.84) Mild~hwkl\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Other degenerative diseases of nervous system, not elsewhere classified
 \ Other specified degenerative diseases of nervous system \ Mild cognitive impairment, so stated</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>4</hlevel>
            <item_name>mild dementia</item_name>
            <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
            <item_icon>LA</item_icon>
            <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>2</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>1</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>4</hlevel>
            <item_name>Frontotemporal dementia</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G31) Other de~tm38\(G31.0) Fronto~6mau\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Other degenerative diseases of nervous system, not elsewhere classified
 \ Frontotemporal dementia</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>5</hlevel>
            <item_name>Dementia with lewy bodies</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G31) Other de~tm38\(G31.8) Other~hf48\(G31.83) Demen~dlg1\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Other degenerative diseases of nervous system, not elsewhere classified
 \ Other specified degenerative diseases of nervous system \ Dementia with lewy bodies</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>5</hlevel>
            <item_name>Lewy body dementia</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G31) Other de~tm38\(G31.8) Other~hf48\(G31.83) Demen~dlg1\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Other degenerative diseases of nervous system, not elsewhere classified
 \ Other specified degenerative diseases of nervous system \ Lewy body dementia</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>5</hlevel>
            <item_name>Dementia with parkinsonism</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G30-G32) Othe~kdmb\(G31) Other de~tm38\(G31.8) Other~hf48\(G31.83) Demen~dlg1\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Other degenerative diseases of the nervous system (g30-g32) \ Other degenerative diseases of nervous system, not elsewhere classified
 \ Other specified degenerative diseases of nervous system \ Dementia with parkinsonism</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>Huntington's dementia</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G10-G14) Syst~ok0m\(G10) Huntingt~mr0d\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Systemic atrophies primarily affecting the central nervous system (g10-g14)
 \ Huntington's dementia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>Vascular dementia</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F01-F09) Ment~gc6p\(F01) Vascular~4cjn\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Mental disorders due to known physiological conditions (f01-f09)
 \ Vascular dementia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>Vascular dementia as a result of infarction of the brain due to vascular disease, including hypertensive cerebrovascular disease.</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F01-F09) Ment~gc6p\(F01) Vascular~4cjn\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Mental disorders due to known physiological conditions (f01-f09)
 \ Vascular dementia as a result of infarction of the brain due to vascular disease, including hypertensive cerebrovascular disease.</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>3</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>0</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>3</hlevel>
            <item_name>  55-64 years old</item_name>
            <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Demographics \ Age \ 55-64 years old</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>  65-74 years old</item_name>
            <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\65-74 years old\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Demographics \ Age \ 65-74 years old</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>3</hlevel>
            <item_name>&gt;= 65 years old</item_name>
            <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\&gt;= 65 years old\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Demographics \ Age \ &gt;= 65 years old</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>4</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>0</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>3</hlevel>
            <item_name>English</item_name>
            <item_key>\\i2b2_DEMO\i2b2\Demographics\Language\English\</item_key>
            <item_icon>MA</item_icon>
            <tooltip>Demographic \ Language \ English</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
</ns4:query_definition>

```

I want to find patients who have a diagnosis of dementia, including Alzheimer's disease, vascular dementia, or dementia with parkinsonism, and are between the ages of 5-74 years old, with a language preference for English. The query also includes the exclusion of Huntington's dementia and vascular dementia as a result of infarction of the brain due to vascular disease, including hypertensive cerebrovascular disease.