```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>Cough-Acute u@15:02:31</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <panel>
        <panel_number>1</panel_number>
        <panel_timing>SAMEINSTANCENUM</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>Cough</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09)
 \ Cough</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>2</panel_number>
        <panel_timing>SAMEINSTANCENUM</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>Acute upper respiratory infections of multiple and unspecified sites</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\(J00-J06) Acut~bb2r\(J06) Acute up~x6qf\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99) \ Acute upper respiratory infections (j00-j06) \ Acute upper respiratory infections of multiple and unspecified sites</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
</ns4:query_definition>

```

I want to find patients with a diagnosis of acute upper respiratory infections of multiple and unspecified sites (J06) and a symptom of cough (R05) within the same encounter. The specificity scale is set to 0, indicating that the occurrence of either condition is sufficient for the patient to be included in the query results. The accuracy scale is set to 100, meaning that the diagnosis and symptom must be present in the same encounter for the patient to be included in the results. The panel timing is set to SAMEINSTANCENUM, indicating that the diagnosis and symptom must occur in the same encounter. The total item occurrences are set to 1, meaning that only one instance of the diagnosis and symptom combination is required for the patient to be included in the results. The class is set to ENC, which stands for "Encounter", indicating that the query is focused on encounters where the diagnosis and symptom occurred together. The query is named "Cough-Acute u@15:02:31".