```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>(t) VITAMIN B12 UNSDiagnostic proc@14:32:12</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <subquery_constraint>
        <first_query>
            <query_id>Observation A</query_id>
            <join_column>STARTDATE</join_column>
            <aggregate_operator>LAST</aggregate_operator>
        </first_query>
        <operator>LESSEQUAL</operator>
        <second_query>
            <query_id>Observation B</query_id>
            <join_column>STARTDATE</join_column>
            <aggregate_operator>ANY</aggregate_operator>
        </second_query>
        <span>
            <operator>GREATEREQUAL</operator>
            <span_value>100</span_value>
            <units>DAY</units>
        </span>
    </subquery_constraint>
    <subquery>
        <query_id>Observation A</query_id>
        <query_type>EVENT</query_type>
        <query_name>Observation A</query_name>
        <query_timing>SAMEINSTANCENUM</query_timing>
        <specificity_scale>0</specificity_scale>
        <panel>
            <panel_number>0</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>5</hlevel>
                <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name>
                <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key>
                <item_icon>LA</item_icon>
                <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip>
                <class>ENC</class>
                <item_is_synonym>false</item_is_synonym>
            </item>
        </panel>
    </subquery>
    <subquery>
        <query_id>Observation B</query_id>
        <query_type>EVENT</query_type>
        <query_name>Observation B</query_name>
        <query_timing>SAMEINSTANCENUM</query_timing>
        <specificity_scale>0</specificity_scale>
        <panel>
            <panel_number>0</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>5</hlevel>
                <item_name>Diagnostic procedures on nose</item_name>
                <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(21-29) Operations on nose, mouth and pharynx\(p21) Operations on nose\(p21-2) Diagnostic procedures on ~\</item_key>
                <item_icon>FA</item_icon>
                <tooltip>Procedures \ ICD9 (Inpatient) \ Operations on nose, mouth and pharynx \ Operations on nose \ Diagnostic procedures on nose</tooltip>
                <class>ENC</class>
                <item_is_synonym>false</item_is_synonym>
            </item>
        </panel>
    </subquery>
</ns4:query_definition>

```

I want to find patients who have had a Vitamin B12 Unsaturated Binding Capacity (LOINC:2171-7) test result within the same instance number as a diagnostic procedure on the nose (ICD9: 21-29, 21-2, p21-2) performed within 10 days or less from the Vitamin B12 test.