1. <?xml version="1.0" encoding="utf-16"?>
  2. <ShowPlanXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.2" Build="11.0.2218.0" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan">
  3.   <BatchSequence>
  4.     <Batch>
  5.       <Statements>
  6.         <StmtSimple StatementCompId="1" StatementEstRows="48696.8" StatementId="1" StatementOptmLevel="FULL" StatementSubTreeCost="1856810" StatementText="SELECT CAST (&#xD;&#xA;    REPLACE (&#xD;&#xA;        REPLACE (&#xD;&#xA;            XEventData.XEvent.value ('(data/value)[1]', 'varchar(max)'),&#xD;&#xA;            '&lt;victim-list&gt;', '&lt;deadlock&gt;&lt;victim-list&gt;'),&#xD;&#xA;        '&lt;process-list&gt;', '&lt;/victim-list&gt;&lt;process-list&gt;')&#xD;&#xA;    AS XML) AS DeadlockGraph&#xD;&#xA;FROM (SELECT CAST (target_data AS XML) AS TargetData&#xD;&#xA;    FROM sys.dm_xe_session_targets st&#xD;&#xA;    JOIN sys.dm_xe_sessions s ON s.address = st.event_session_address&#xD;&#xA;    WHERE [name] = 'system_health') AS Data&#xD;&#xA;CROSS APPLY TargetData.nodes ('//RingBufferTarget/event') AS XEventData (XEvent)&#xD;&#xA;    WHERE XEventData.XEvent.value('@name', 'varchar(4000)') = 'xml_deadlock_report'&#xD;&#xA;    OPTION (MAXDOP 1)" StatementType="SELECT" QueryHash="0x6C275B66E279A54B" QueryPlanHash="0x4D6C2A561737722C">
  7.           <StatementSetOptions ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" ARITHABORT="true" CONCAT_NULL_YIELDS_NULL="true" NUMERIC_ROUNDABORT="false" QUOTED_IDENTIFIER="true" />
  8.           <QueryPlan DegreeOfParallelism="0" MemoryGrant="1328" CachedPlanSize="112" CompileTime="6" CompileCPU="6" CompileMemory="1336">
  9.             <RelOp AvgRowSize="4035" EstimateCPU="0.00486968" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="48696.8" LogicalOp="Compute Scalar" NodeId="0" Parallel="false" PhysicalOp="Compute Scalar" EstimatedTotalSubtreeCost="1856810">
  10.               <OutputList>
  11.                 <ColumnReference Column="Expr1023" />
  12.               </OutputList>
  13.               <ComputeScalar>
  14.                 <DefinedValues>
  15.                   <DefinedValue>
  16.                     <ColumnReference Column="Expr1023" />
  17.                     <ScalarOperator ScalarString="CONVERT(xml,replace(replace([Expr1022],'&lt;victim-list&gt;',CONVERT_IMPLICIT(varchar(max),'&lt;deadlock&gt;&lt;victim-list&gt;',0)),'&lt;process-list&gt;',CONVERT_IMPLICIT(varchar(max),'&lt;/victim-list&gt;&lt;process-list&gt;',0)),0)">
  18.                       <Convert DataType="xml" Style="0" Implicit="false">
  19.                         <ScalarOperator>
  20.                           <Intrinsic FunctionName="replace">
  21.                             <ScalarOperator>
  22.                               <Intrinsic FunctionName="replace">
  23.                                 <ScalarOperator>
  24.                                   <Identifier>
  25.                                     <ColumnReference Column="Expr1022" />
  26.                                   </Identifier>
  27.                                 </ScalarOperator>
  28.                                 <ScalarOperator>
  29.                                   <Const ConstValue="'&lt;victim-list&gt;'" />
  30.                                 </ScalarOperator>
  31.                                 <ScalarOperator>
  32.                                   <Identifier>
  33.                                     <ColumnReference Column="ConstExpr1025">
  34.                                       <ScalarOperator>
  35.                                         <Convert DataType="varchar(max)" Length="2147483647" Style="0" Implicit="true">
  36.                                           <ScalarOperator>
  37.                                             <Const ConstValue="'&lt;deadlock&gt;&lt;victim-list&gt;'" />
  38.                                           </ScalarOperator>
  39.                                         </Convert>
  40.                                       </ScalarOperator>
  41.                                     </ColumnReference>
  42.                                   </Identifier>
  43.                                 </ScalarOperator>
  44.                               </Intrinsic>
  45.                             </ScalarOperator>
  46.                             <ScalarOperator>
  47.                               <Const ConstValue="'&lt;process-list&gt;'" />
  48.                             </ScalarOperator>
  49.                             <ScalarOperator>
  50.                               <Identifier>
  51.                                 <ColumnReference Column="ConstExpr1024">
  52.                                   <ScalarOperator>
  53.                                     <Convert DataType="varchar(max)" Length="2147483647" Style="0" Implicit="true">
  54.                                       <ScalarOperator>
  55.                                         <Const ConstValue="'&lt;/victim-list&gt;&lt;process-list&gt;'" />
  56.                                       </ScalarOperator>
  57.                                     </Convert>
  58.                                   </ScalarOperator>
  59.                                 </ColumnReference>
  60.                               </Identifier>
  61.                             </ScalarOperator>
  62.                           </Intrinsic>
  63.                         </ScalarOperator>
  64.                       </Convert>
  65.                     </ScalarOperator>
  66.                   </DefinedValue>
  67.                 </DefinedValues>
  68.                 <RelOp AvgRowSize="4035" EstimateCPU="0.203552" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="48696.8" LogicalOp="Inner Join" NodeId="1" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="1856810">
  69.                   <OutputList>
  70.                     <ColumnReference Column="Expr1022" />
  71.                   </OutputList>
  72.                   <RunTimeInformation>
  73.                     <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="1" ActualExecutions="1" />
  74.                   </RunTimeInformation>
  75.                   <NestedLoops Optimized="false">
  76.                     <OuterReferences>
  77.                       <ColumnReference Column="Expr1000" />
  78.                       <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  79.                     </OuterReferences>
  80.                     <RelOp AvgRowSize="4093" EstimateCPU="0.853574" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="48696.8" LogicalOp="Filter" NodeId="2" Parallel="false" PhysicalOp="Filter" EstimatedTotalSubtreeCost="1796820">
  81.                       <OutputList>
  82.                         <ColumnReference Column="Expr1000" />
  83.                         <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  84.                       </OutputList>
  85.                       <RunTimeInformation>
  86.                         <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="1" ActualExecutions="1" />
  87.                       </RunTimeInformation>
  88.                       <Filter StartupExpression="false">
  89.                         <RelOp AvgRowSize="6095" EstimateCPU="7.43321" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="1778280" LogicalOp="Inner Join" NodeId="3" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="1796820">
  90.                           <OutputList>
  91.                             <ColumnReference Column="Expr1000" />
  92.                             <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  93.                             <ColumnReference Column="Expr1008" />
  94.                           </OutputList>
  95.                           <RunTimeInformation>
  96.                             <RunTimeCountersPerThread Thread="0" ActualRows="3782" ActualEndOfScans="1" ActualExecutions="1" />
  97.                           </RunTimeInformation>
  98.                           <NestedLoops Optimized="false">
  99.                             <OuterReferences>
  100.                               <ColumnReference Column="Expr1000" />
  101.                               <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  102.                             </OuterReferences>
  103.                             <RelOp AvgRowSize="4093" EstimateCPU="7.43321" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="1778280" LogicalOp="Inner Join" NodeId="4" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="17863.1">
  104.                               <OutputList>
  105.                                 <ColumnReference Column="Expr1000" />
  106.                                 <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  107.                               </OutputList>
  108.                               <RunTimeInformation>
  109.                                 <RunTimeCountersPerThread Thread="0" ActualRows="3782" ActualEndOfScans="1" ActualExecutions="1" />
  110.                               </RunTimeInformation>
  111.                               <NestedLoops Optimized="false">
  112.                                 <OuterReferences>
  113.                                   <ColumnReference Column="Expr1000" />
  114.                                 </OuterReferences>
  115.                                 <RelOp AvgRowSize="4085" EstimateCPU="0.0504178" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="17782.8" LogicalOp="Inner Join" NodeId="5" Parallel="false" PhysicalOp="Hash Match" EstimatedTotalSubtreeCost="0.0516989">
  116.                                   <OutputList>
  117.                                     <ColumnReference Column="Expr1000" />
  118.                                   </OutputList>
  119.                                   <MemoryFractions Input="1" Output="1" />
  120.                                   <RunTimeInformation>
  121.                                     <RunTimeCountersPerThread Thread="0" ActualRows="2" ActualEndOfScans="1" ActualExecutions="1" />
  122.                                   </RunTimeInformation>
  123.                                   <Hash>
  124.                                     <DefinedValues />
  125.                                     <HashKeysBuild>
  126.                                       <ColumnReference Table="[DM_XE_SESSIONS]" Column="address" />
  127.                                     </HashKeysBuild>
  128.                                     <HashKeysProbe>
  129.                                       <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="event_session_address" />
  130.                                     </HashKeysProbe>
  131.                                     <ProbeResidual>
  132.                                       <ScalarOperator ScalarString="DM_XE_SESSION_TARGETS.[event_session_address]=DM_XE_SESSIONS.[address]">
  133.                                         <Compare CompareOp="EQ">
  134.                                           <ScalarOperator>
  135.                                             <Identifier>
  136.                                               <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="event_session_address" />
  137.                                             </Identifier>
  138.                                           </ScalarOperator>
  139.                                           <ScalarOperator>
  140.                                             <Identifier>
  141.                                               <ColumnReference Table="[DM_XE_SESSIONS]" Column="address" />
  142.                                             </Identifier>
  143.                                           </ScalarOperator>
  144.                                         </Compare>
  145.                                       </ScalarOperator>
  146.                                     </ProbeResidual>
  147.                                     <RelOp AvgRowSize="15" EstimateCPU="0.000177985" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="177.828" LogicalOp="Table-valued function" NodeId="6" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="0.000177985">
  148.                                       <OutputList>
  149.                                         <ColumnReference Table="[DM_XE_SESSIONS]" Column="address" />
  150.                                       </OutputList>
  151.                                       <RunTimeInformation>
  152.                                         <RunTimeCountersPerThread Thread="0" ActualRebinds="1" ActualRewinds="0" ActualRows="1" ActualEndOfScans="1" ActualExecutions="1" />
  153.                                       </RunTimeInformation>
  154.                                       <TableValuedFunction>
  155.                                         <DefinedValues>
  156.                                           <DefinedValue>
  157.                                             <ColumnReference Table="[DM_XE_SESSIONS]" Column="address" />
  158.                                           </DefinedValue>
  159.                                         </DefinedValues>
  160.                                         <Object Table="[DM_XE_SESSIONS]" />
  161.                                         <ParameterList>
  162.                                           <ScalarOperator ScalarString="(0)">
  163.                                             <Const ConstValue="(0)" />
  164.                                           </ScalarOperator>
  165.                                           <ScalarOperator ScalarString="NULL">
  166.                                             <Const ConstValue="NULL" />
  167.                                           </ScalarOperator>
  168.                                           <ScalarOperator ScalarString="(1)">
  169.                                             <Const ConstValue="(1)" />
  170.                                           </ScalarOperator>
  171.                                           <ScalarOperator ScalarString="N'system_health'">
  172.                                             <Const ConstValue="N'system_health'" />
  173.                                           </ScalarOperator>
  174.                                         </ParameterList>
  175.                                       </TableValuedFunction>
  176.                                     </RelOp>
  177.                                     <RelOp AvgRowSize="4091" EstimateCPU="0.0001" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="1000" LogicalOp="Compute Scalar" NodeId="11" Parallel="false" PhysicalOp="Compute Scalar" EstimatedTotalSubtreeCost="0.00110016">
  178.                                       <OutputList>
  179.                                         <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="event_session_address" />
  180.                                         <ColumnReference Column="Expr1000" />
  181.                                       </OutputList>
  182.                                       <ComputeScalar>
  183.                                         <DefinedValues>
  184.                                           <DefinedValue>
  185.                                             <ColumnReference Column="Expr1000" />
  186.                                             <ScalarOperator ScalarString="CONVERT(xml,DM_XE_SESSION_TARGETS.[target_data],0)">
  187.                                               <Convert DataType="xml" Style="0" Implicit="false">
  188.                                                 <ScalarOperator>
  189.                                                   <Identifier>
  190.                                                     <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="target_data" />
  191.                                                   </Identifier>
  192.                                                 </ScalarOperator>
  193.                                               </Convert>
  194.                                             </ScalarOperator>
  195.                                           </DefinedValue>
  196.                                         </DefinedValues>
  197.                                         <RelOp AvgRowSize="4091" EstimateCPU="0.00100016" EstimateIO="0" EstimateRebinds="0" EstimateRewinds="0" EstimateRows="1000" LogicalOp="Table-valued function" NodeId="12" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="0.00100016">
  198.                                           <OutputList>
  199.                                             <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="event_session_address" />
  200.                                             <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="target_data" />
  201.                                           </OutputList>
  202.                                           <RunTimeInformation>
  203.                                             <RunTimeCountersPerThread Thread="0" ActualRebinds="1" ActualRewinds="0" ActualRows="3" ActualEndOfScans="1" ActualExecutions="1" />
  204.                                           </RunTimeInformation>
  205.                                           <TableValuedFunction>
  206.                                             <DefinedValues>
  207.                                               <DefinedValue>
  208.                                                 <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="event_session_address" />
  209.                                               </DefinedValue>
  210.                                               <DefinedValue>
  211.                                                 <ColumnReference Table="[DM_XE_SESSION_TARGETS]" Column="target_data" />
  212.                                               </DefinedValue>
  213.                                             </DefinedValues>
  214.                                             <Object Table="[DM_XE_SESSION_TARGETS]" />
  215.                                             <ParameterList>
  216.                                               <ScalarOperator ScalarString="(0)">
  217.                                                 <Const ConstValue="(0)" />
  218.                                               </ScalarOperator>
  219.                                               <ScalarOperator ScalarString="NULL">
  220.                                                 <Const ConstValue="NULL" />
  221.                                               </ScalarOperator>
  222.                                             </ParameterList>
  223.                                           </TableValuedFunction>
  224.                                         </RelOp>
  225.                                       </ComputeScalar>
  226.                                     </RelOp>
  227.                                   </Hash>
  228.                                 </RelOp>
  229.                                 <RelOp AvgRowSize="17" EstimateCPU="9.6E-05" EstimateIO="0" EstimateRebinds="17649.4" EstimateRewinds="132.352" EstimateRows="100" LogicalOp="Filter" NodeId="19" Parallel="false" PhysicalOp="Filter" EstimatedTotalSubtreeCost="17855.6">
  230.                                   <OutputList>
  231.                                     <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  232.                                   </OutputList>
  233.                                   <RunTimeInformation>
  234.                                     <RunTimeCountersPerThread Thread="0" ActualRebinds="2" ActualRewinds="0" ActualRows="3782" ActualEndOfScans="2" ActualExecutions="2" />
  235.                                   </RunTimeInformation>
  236.                                   <Filter StartupExpression="true">
  237.                                     <RelOp AvgRowSize="17" EstimateCPU="1.004" EstimateIO="0" EstimateRebinds="17649.4" EstimateRewinds="132.352" EstimateRows="200" LogicalOp="Table-valued function" NodeId="20" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="17853.9">
  238.                                       <OutputList>
  239.                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  240.                                       </OutputList>
  241.                                       <RunTimeInformation>
  242.                                         <RunTimeCountersPerThread Thread="0" ActualRebinds="2" ActualRewinds="0" ActualRows="3782" ActualEndOfScans="2" ActualExecutions="2" />
  243.                                       </RunTimeInformation>
  244.                                       <TableValuedFunction>
  245.                                         <DefinedValues>
  246.                                           <DefinedValue>
  247.                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  248.                                           </DefinedValue>
  249.                                         </DefinedValues>
  250.                                         <Object Table="[XML Reader with XPath filter]" />
  251.                                         <ParameterList>
  252.                                           <ScalarOperator ScalarString="[Expr1000]">
  253.                                             <Identifier>
  254.                                               <ColumnReference Column="Expr1000" />
  255.                                             </Identifier>
  256.                                           </ScalarOperator>
  257.                                           <ScalarOperator ScalarString="(0)">
  258.                                             <Const ConstValue="(0)" />
  259.                                           </ScalarOperator>
  260.                                           <ScalarOperator ScalarString="NULL">
  261.                                             <Const ConstValue="NULL" />
  262.                                           </ScalarOperator>
  263.                                           <ScalarOperator ScalarString="NULL">
  264.                                             <Const ConstValue="NULL" />
  265.                                           </ScalarOperator>
  266.                                         </ParameterList>
  267.                                       </TableValuedFunction>
  268.                                     </RelOp>
  269.                                     <Predicate>
  270.                                       <ScalarOperator ScalarString="[Expr1000] IS NOT NULL">
  271.                                         <Compare CompareOp="IS NOT">
  272.                                           <ScalarOperator>
  273.                                             <Identifier>
  274.                                               <ColumnReference Column="Expr1000" />
  275.                                             </Identifier>
  276.                                           </ScalarOperator>
  277.                                           <ScalarOperator>
  278.                                             <Const ConstValue="NULL" />
  279.                                           </ScalarOperator>
  280.                                         </Compare>
  281.                                       </ScalarOperator>
  282.                                     </Predicate>
  283.                                   </Filter>
  284.                                 </RelOp>
  285.                               </NestedLoops>
  286.                             </RelOp>
  287.                             <RelOp AvgRowSize="2011" EstimateCPU="3.37188E-06" EstimateIO="0" EstimateRebinds="1776950" EstimateRewinds="1332.52" EstimateRows="1" LogicalOp="Aggregate" NodeId="26" Parallel="false" PhysicalOp="Stream Aggregate" EstimatedTotalSubtreeCost="1778950">
  288.                               <OutputList>
  289.                                 <ColumnReference Column="Expr1008" />
  290.                               </OutputList>
  291.                               <RunTimeInformation>
  292.                                 <RunTimeCountersPerThread Thread="0" ActualRows="3782" ActualEndOfScans="0" ActualExecutions="3782" />
  293.                               </RunTimeInformation>
  294.                               <StreamAggregate>
  295.                                 <DefinedValues>
  296.                                   <DefinedValue>
  297.                                     <ColumnReference Column="Expr1008" />
  298.                                     <ScalarOperator ScalarString="MIN(CASE WHEN [Expr1000] IS NULL THEN NULL ELSE CASE WHEN datalength(XML Reader with XPath filter.[value])&gt;=(128) THEN CONVERT_IMPLICIT(varchar(4000),XML Reader with XPath filter.[lvalue],0) ELSE CONVERT_IMPLICIT(varchar(4000),XML Reader with XPath filter.[value],0) END END)">
  299.                                       <Aggregate AggType="MIN" Distinct="false">
  300.                                         <ScalarOperator>
  301.                                           <IF>
  302.                                             <Condition>
  303.                                               <ScalarOperator>
  304.                                                 <Compare CompareOp="IS">
  305.                                                   <ScalarOperator>
  306.                                                     <Identifier>
  307.                                                       <ColumnReference Column="Expr1000" />
  308.                                                     </Identifier>
  309.                                                   </ScalarOperator>
  310.                                                   <ScalarOperator>
  311.                                                     <Const ConstValue="NULL" />
  312.                                                   </ScalarOperator>
  313.                                                 </Compare>
  314.                                               </ScalarOperator>
  315.                                             </Condition>
  316.                                             <Then>
  317.                                               <ScalarOperator>
  318.                                                 <Const ConstValue="NULL" />
  319.                                               </ScalarOperator>
  320.                                             </Then>
  321.                                             <Else>
  322.                                               <ScalarOperator>
  323.                                                 <IF>
  324.                                                   <Condition>
  325.                                                     <ScalarOperator>
  326.                                                       <Compare CompareOp="GE">
  327.                                                         <ScalarOperator>
  328.                                                           <Intrinsic FunctionName="datalength">
  329.                                                             <ScalarOperator>
  330.                                                               <Identifier>
  331.                                                                 <ColumnReference Table="[XML Reader with XPath filter]" Column="value" />
  332.                                                               </Identifier>
  333.                                                             </ScalarOperator>
  334.                                                           </Intrinsic>
  335.                                                         </ScalarOperator>
  336.                                                         <ScalarOperator>
  337.                                                           <Const ConstValue="(128)" />
  338.                                                         </ScalarOperator>
  339.                                                       </Compare>
  340.                                                     </ScalarOperator>
  341.                                                   </Condition>
  342.                                                   <Then>
  343.                                                     <ScalarOperator>
  344.                                                       <Convert DataType="varchar" Length="4000" Style="0" Implicit="true">
  345.                                                         <ScalarOperator>
  346.                                                           <Identifier>
  347.                                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="lvalue" />
  348.                                                           </Identifier>
  349.                                                         </ScalarOperator>
  350.                                                       </Convert>
  351.                                                     </ScalarOperator>
  352.                                                   </Then>
  353.                                                   <Else>
  354.                                                     <ScalarOperator>
  355.                                                       <Convert DataType="varchar" Length="4000" Style="0" Implicit="true">
  356.                                                         <ScalarOperator>
  357.                                                           <Identifier>
  358.                                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="value" />
  359.                                                           </Identifier>
  360.                                                         </ScalarOperator>
  361.                                                       </Convert>
  362.                                                     </ScalarOperator>
  363.                                                   </Else>
  364.                                                 </IF>
  365.                                               </ScalarOperator>
  366.                                             </Else>
  367.                                           </IF>
  368.                                         </ScalarOperator>
  369.                                       </Aggregate>
  370.                                     </ScalarOperator>
  371.                                   </DefinedValue>
  372.                                 </DefinedValues>
  373.                                 <RelOp AvgRowSize="4057" EstimateCPU="1.224E-05" EstimateIO="0" EstimateRebinds="1776950" EstimateRewinds="1332.52" EstimateRows="4.78647" LogicalOp="Filter" NodeId="27" Parallel="false" PhysicalOp="Filter" EstimatedTotalSubtreeCost="1778940">
  374.                                   <OutputList>
  375.                                     <ColumnReference Table="[XML Reader with XPath filter]" Column="value" />
  376.                                     <ColumnReference Table="[XML Reader with XPath filter]" Column="lvalue" />
  377.                                   </OutputList>
  378.                                   <RunTimeInformation>
  379.                                     <RunTimeCountersPerThread Thread="0" ActualRows="3782" ActualEndOfScans="3782" ActualExecutions="3782" />
  380.                                   </RunTimeInformation>
  381.                                   <Filter StartupExpression="false">
  382.                                     <RelOp AvgRowSize="4065" EstimateCPU="1.00036" EstimateIO="0" EstimateRebinds="1776950" EstimateRewinds="1332.52" EstimateRows="18" LogicalOp="Table-valued function" NodeId="28" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="1778920">
  383.                                       <OutputList>
  384.                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  385.                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="value" />
  386.                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="lvalue" />
  387.                                       </OutputList>
  388.                                       <RunTimeInformation>
  389.                                         <RunTimeCountersPerThread Thread="0" ActualRebinds="3782" ActualRewinds="0" ActualRows="3782" ActualEndOfScans="3782" ActualExecutions="3782" />
  390.                                       </RunTimeInformation>
  391.                                       <TableValuedFunction>
  392.                                         <DefinedValues>
  393.                                           <DefinedValue>
  394.                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  395.                                           </DefinedValue>
  396.                                           <DefinedValue>
  397.                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="value" />
  398.                                           </DefinedValue>
  399.                                           <DefinedValue>
  400.                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="lvalue" />
  401.                                           </DefinedValue>
  402.                                         </DefinedValues>
  403.                                         <Object Table="[XML Reader with XPath filter]" />
  404.                                         <ParameterList>
  405.                                           <ScalarOperator ScalarString="[Expr1000]">
  406.                                             <Identifier>
  407.                                               <ColumnReference Column="Expr1000" />
  408.                                             </Identifier>
  409.                                           </ScalarOperator>
  410.                                           <ScalarOperator ScalarString="(7)">
  411.                                             <Const ConstValue="(7)" />
  412.                                           </ScalarOperator>
  413.                                           <ScalarOperator ScalarString="XML Reader with XPath filter.[id]">
  414.                                             <Identifier>
  415.                                               <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  416.                                             </Identifier>
  417.                                           </ScalarOperator>
  418.                                           <ScalarOperator ScalarString="getdescendantlimit(XML Reader with XPath filter.[id])">
  419.                                             <Intrinsic FunctionName="getdescendantlimit">
  420.                                               <ScalarOperator>
  421.                                                 <Identifier>
  422.                                                   <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  423.                                                 </Identifier>
  424.                                               </ScalarOperator>
  425.                                             </Intrinsic>
  426.                                           </ScalarOperator>
  427.                                         </ParameterList>
  428.                                       </TableValuedFunction>
  429.                                     </RelOp>
  430.                                     <Predicate>
  431.                                       <ScalarOperator ScalarString="XML Reader with XPath filter.[id]=getancestor(XML Reader with XPath filter.[id],(1))">
  432.                                         <Compare CompareOp="EQ">
  433.                                           <ScalarOperator>
  434.                                             <Identifier>
  435.                                               <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  436.                                             </Identifier>
  437.                                           </ScalarOperator>
  438.                                           <ScalarOperator>
  439.                                             <Intrinsic FunctionName="getancestor">
  440.                                               <ScalarOperator>
  441.                                                 <Identifier>
  442.                                                   <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  443.                                                 </Identifier>
  444.                                               </ScalarOperator>
  445.                                               <ScalarOperator>
  446.                                                 <Const ConstValue="(1)" />
  447.                                               </ScalarOperator>
  448.                                             </Intrinsic>
  449.                                           </ScalarOperator>
  450.                                         </Compare>
  451.                                       </ScalarOperator>
  452.                                     </Predicate>
  453.                                   </Filter>
  454.                                 </RelOp>
  455.                               </StreamAggregate>
  456.                             </RelOp>
  457.                           </NestedLoops>
  458.                         </RelOp>
  459.                         <Predicate>
  460.                           <ScalarOperator ScalarString="[Expr1008]='xml_deadlock_report'">
  461.                             <Compare CompareOp="EQ">
  462.                               <ScalarOperator>
  463.                                 <Identifier>
  464.                                   <ColumnReference Column="Expr1008" />
  465.                                 </Identifier>
  466.                               </ScalarOperator>
  467.                               <ScalarOperator>
  468.                                 <Const ConstValue="'xml_deadlock_report'" />
  469.                               </ScalarOperator>
  470.                             </Compare>
  471.                           </ScalarOperator>
  472.                         </Predicate>
  473.                       </Filter>
  474.                     </RelOp>
  475.                     <RelOp AvgRowSize="4035" EstimateCPU="0.0004325" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="1" LogicalOp="Aggregate" NodeId="38" Parallel="false" PhysicalOp="Stream Aggregate" EstimatedTotalSubtreeCost="59990.3">
  476.                       <OutputList>
  477.                         <ColumnReference Column="Expr1022" />
  478.                       </OutputList>
  479.                       <RunTimeInformation>
  480.                         <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="0" ActualExecutions="1" />
  481.                       </RunTimeInformation>
  482.                       <StreamAggregate>
  483.                         <DefinedValues>
  484.                           <DefinedValue>
  485.                             <ColumnReference Column="Expr1022" />
  486.                             <ScalarOperator ScalarString="MIN(CASE WHEN [Expr1000] IS NULL THEN NULL ELSE CASE WHEN datalength([Expr1019])&gt;=(128) THEN CONVERT_IMPLICIT(varchar(max),[Expr1020],0) ELSE CONVERT_IMPLICIT(varchar(max),[Expr1019],0) END END)">
  487.                               <Aggregate AggType="MIN" Distinct="false">
  488.                                 <ScalarOperator>
  489.                                   <IF>
  490.                                     <Condition>
  491.                                       <ScalarOperator>
  492.                                         <Compare CompareOp="IS">
  493.                                           <ScalarOperator>
  494.                                             <Identifier>
  495.                                               <ColumnReference Column="Expr1000" />
  496.                                             </Identifier>
  497.                                           </ScalarOperator>
  498.                                           <ScalarOperator>
  499.                                             <Const ConstValue="NULL" />
  500.                                           </ScalarOperator>
  501.                                         </Compare>
  502.                                       </ScalarOperator>
  503.                                     </Condition>
  504.                                     <Then>
  505.                                       <ScalarOperator>
  506.                                         <Const ConstValue="NULL" />
  507.                                       </ScalarOperator>
  508.                                     </Then>
  509.                                     <Else>
  510.                                       <ScalarOperator>
  511.                                         <IF>
  512.                                           <Condition>
  513.                                             <ScalarOperator>
  514.                                               <Compare CompareOp="GE">
  515.                                                 <ScalarOperator>
  516.                                                   <Intrinsic FunctionName="datalength">
  517.                                                     <ScalarOperator>
  518.                                                       <Identifier>
  519.                                                         <ColumnReference Column="Expr1019" />
  520.                                                       </Identifier>
  521.                                                     </ScalarOperator>
  522.                                                   </Intrinsic>
  523.                                                 </ScalarOperator>
  524.                                                 <ScalarOperator>
  525.                                                   <Const ConstValue="(128)" />
  526.                                                 </ScalarOperator>
  527.                                               </Compare>
  528.                                             </ScalarOperator>
  529.                                           </Condition>
  530.                                           <Then>
  531.                                             <ScalarOperator>
  532.                                               <Convert DataType="varchar(max)" Length="2147483647" Style="0" Implicit="true">
  533.                                                 <ScalarOperator>
  534.                                                   <Identifier>
  535.                                                     <ColumnReference Column="Expr1020" />
  536.                                                   </Identifier>
  537.                                                 </ScalarOperator>
  538.                                               </Convert>
  539.                                             </ScalarOperator>
  540.                                           </Then>
  541.                                           <Else>
  542.                                             <ScalarOperator>
  543.                                               <Convert DataType="varchar(max)" Length="2147483647" Style="0" Implicit="true">
  544.                                                 <ScalarOperator>
  545.                                                   <Identifier>
  546.                                                     <ColumnReference Column="Expr1019" />
  547.                                                   </Identifier>
  548.                                                 </ScalarOperator>
  549.                                               </Convert>
  550.                                             </ScalarOperator>
  551.                                           </Else>
  552.                                         </IF>
  553.                                       </ScalarOperator>
  554.                                     </Else>
  555.                                   </IF>
  556.                                 </ScalarOperator>
  557.                               </Aggregate>
  558.                             </ScalarOperator>
  559.                           </DefinedValue>
  560.                         </DefinedValues>
  561.                         <RelOp AvgRowSize="8045" EstimateCPU="0.00072" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="720" LogicalOp="UDX" NodeId="39" Parallel="false" PhysicalOp="UDX" EstimatedTotalSubtreeCost="59969.2">
  562.                           <OutputList>
  563.                             <ColumnReference Column="Expr1019" />
  564.                             <ColumnReference Column="Expr1020" />
  565.                           </OutputList>
  566.                           <RunTimeInformation>
  567.                             <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="1" ActualExecutions="1" />
  568.                           </RunTimeInformation>
  569.                           <Extension UDXName="XQUERY DATA">
  570.                             <DefinedValues>
  571.                               <DefinedValue>
  572.                                 <ColumnReference Column="Expr1017" />
  573.                               </DefinedValue>
  574.                               <DefinedValue>
  575.                                 <ColumnReference Column="Expr1018" />
  576.                               </DefinedValue>
  577.                               <DefinedValue>
  578.                                 <ColumnReference Column="Expr1019" />
  579.                               </DefinedValue>
  580.                               <DefinedValue>
  581.                                 <ColumnReference Column="Expr1020" />
  582.                               </DefinedValue>
  583.                               <DefinedValue>
  584.                                 <ColumnReference Column="Expr1021" />
  585.                               </DefinedValue>
  586.                             </DefinedValues>
  587.                             <UsedUDXColumns>
  588.                               <ColumnReference Table="[XML Reader]" Column="id" />
  589.                               <ColumnReference Table="[XML Reader]" Column="nid" />
  590.                               <ColumnReference Table="[XML Reader]" Column="tid" />
  591.                               <ColumnReference Table="[XML Reader]" Column="value" />
  592.                               <ColumnReference Table="[XML Reader]" Column="lvalue" />
  593.                               <ColumnReference Table="[XML Reader]" Column="lvaluebin" />
  594.                               <ColumnReference Column="Expr1013" />
  595.                               <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  596.                               <ColumnReference Table="[XML Reader]" Column="id" />
  597.                             </UsedUDXColumns>
  598.                             <RelOp AvgRowSize="8559" EstimateCPU="0.003762" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="900" LogicalOp="Inner Join" NodeId="40" Parallel="false" PhysicalOp="Nested Loops" EstimatedTotalSubtreeCost="59934.1">
  599.                               <OutputList>
  600.                                 <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  601.                                 <ColumnReference Column="Expr1013" />
  602.                                 <ColumnReference Table="[XML Reader]" Column="id" />
  603.                                 <ColumnReference Table="[XML Reader]" Column="nid" />
  604.                                 <ColumnReference Table="[XML Reader]" Column="tid" />
  605.                                 <ColumnReference Table="[XML Reader]" Column="value" />
  606.                                 <ColumnReference Table="[XML Reader]" Column="lvalue" />
  607.                                 <ColumnReference Table="[XML Reader]" Column="lvaluebin" />
  608.                               </OutputList>
  609.                               <RunTimeInformation>
  610.                                 <RunTimeCountersPerThread Thread="0" ActualRows="124" ActualEndOfScans="1" ActualExecutions="1" />
  611.                               </RunTimeInformation>
  612.                               <NestedLoops Optimized="false">
  613.                                 <OuterReferences>
  614.                                   <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  615.                                   <ColumnReference Column="Expr1027" />
  616.                                 </OuterReferences>
  617.                                 <RelOp AvgRowSize="921" EstimateCPU="1E-07" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="1" LogicalOp="Top" NodeId="41" Parallel="false" PhysicalOp="Top" EstimatedTotalSubtreeCost="10177.7">
  618.                                   <OutputList>
  619.                                     <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  620.                                     <ColumnReference Column="Expr1013" />
  621.                                     <ColumnReference Column="Expr1027" />
  622.                                   </OutputList>
  623.                                   <RunTimeInformation>
  624.                                     <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="1" ActualExecutions="1" />
  625.                                   </RunTimeInformation>
  626.                                   <Top RowCount="false" IsPercent="false" WithTies="false">
  627.                                     <TopExpression>
  628.                                       <ScalarOperator ScalarString="(1)">
  629.                                         <Const ConstValue="(1)" />
  630.                                       </ScalarOperator>
  631.                                     </TopExpression>
  632.                                     <RelOp AvgRowSize="921" EstimateCPU="4.78647E-07" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="1" LogicalOp="Compute Scalar" NodeId="42" Parallel="false" PhysicalOp="Compute Scalar" EstimatedTotalSubtreeCost="10177.7">
  633.                                       <OutputList>
  634.                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  635.                                         <ColumnReference Column="Expr1013" />
  636.                                         <ColumnReference Column="Expr1027" />
  637.                                       </OutputList>
  638.                                       <ComputeScalar>
  639.                                         <DefinedValues>
  640.                                           <DefinedValue>
  641.                                             <ColumnReference Column="Expr1013" />
  642.                                             <ScalarOperator ScalarString="0x58">
  643.                                               <Const ConstValue="0x58" />
  644.                                             </ScalarOperator>
  645.                                           </DefinedValue>
  646.                                         </DefinedValues>
  647.                                         <RelOp AvgRowSize="469" EstimateCPU="1.224E-05" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="1" LogicalOp="Filter" NodeId="43" Parallel="false" PhysicalOp="Filter" EstimatedTotalSubtreeCost="10177.6">
  648.                                           <OutputList>
  649.                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  650.                                             <ColumnReference Column="Expr1027" />
  651.                                           </OutputList>
  652.                                           <RunTimeInformation>
  653.                                             <RunTimeCountersPerThread Thread="0" ActualRows="1" ActualEndOfScans="0" ActualExecutions="1" />
  654.                                           </RunTimeInformation>
  655.                                           <Filter StartupExpression="false">
  656.                                             <RelOp AvgRowSize="469" EstimateCPU="1.8E-06" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="3.7606" LogicalOp="Compute Scalar" NodeId="44" Parallel="false" PhysicalOp="Compute Scalar" EstimatedTotalSubtreeCost="10177.5">
  657.                                               <OutputList>
  658.                                                 <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  659.                                                 <ColumnReference Column="Expr1027" />
  660.                                               </OutputList>
  661.                                               <ComputeScalar>
  662.                                                 <DefinedValues>
  663.                                                   <DefinedValue>
  664.                                                     <ColumnReference Column="Expr1027" />
  665.                                                     <ScalarOperator ScalarString="getdescendantlimit(XML Reader with XPath filter.[id])">
  666.                                                       <Intrinsic FunctionName="getdescendantlimit">
  667.                                                         <ScalarOperator>
  668.                                                           <Identifier>
  669.                                                             <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  670.                                                           </Identifier>
  671.                                                         </ScalarOperator>
  672.                                                       </Intrinsic>
  673.                                                     </ScalarOperator>
  674.                                                   </DefinedValue>
  675.                                                 </DefinedValues>
  676.                                                 <RelOp AvgRowSize="17" EstimateCPU="1.00036" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="3.7606" LogicalOp="Table-valued function" NodeId="45" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="10177.5">
  677.                                                   <OutputList>
  678.                                                     <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  679.                                                   </OutputList>
  680.                                                   <RunTimeInformation>
  681.                                                     <RunTimeCountersPerThread Thread="0" ActualRebinds="1" ActualRewinds="0" ActualRows="1" ActualEndOfScans="0" ActualExecutions="1" />
  682.                                                   </RunTimeInformation>
  683.                                                   <TableValuedFunction>
  684.                                                     <DefinedValues>
  685.                                                       <DefinedValue>
  686.                                                         <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  687.                                                       </DefinedValue>
  688.                                                     </DefinedValues>
  689.                                                     <Object Table="[XML Reader with XPath filter]" />
  690.                                                     <ParameterList>
  691.                                                       <ScalarOperator ScalarString="[Expr1000]">
  692.                                                         <Identifier>
  693.                                                           <ColumnReference Column="Expr1000" />
  694.                                                         </Identifier>
  695.                                                       </ScalarOperator>
  696.                                                       <ScalarOperator ScalarString="(7)">
  697.                                                         <Const ConstValue="(7)" />
  698.                                                       </ScalarOperator>
  699.                                                       <ScalarOperator ScalarString="XML Reader with XPath filter.[id]">
  700.                                                         <Identifier>
  701.                                                           <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  702.                                                         </Identifier>
  703.                                                       </ScalarOperator>
  704.                                                       <ScalarOperator ScalarString="getdescendantlimit(XML Reader with XPath filter.[id])">
  705.                                                         <Intrinsic FunctionName="getdescendantlimit">
  706.                                                           <ScalarOperator>
  707.                                                             <Identifier>
  708.                                                               <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  709.                                                             </Identifier>
  710.                                                           </ScalarOperator>
  711.                                                         </Intrinsic>
  712.                                                       </ScalarOperator>
  713.                                                     </ParameterList>
  714.                                                   </TableValuedFunction>
  715.                                                 </RelOp>
  716.                                               </ComputeScalar>
  717.                                             </RelOp>
  718.                                             <Predicate>
  719.                                               <ScalarOperator ScalarString="XML Reader with XPath filter.[id]=getancestor(XML Reader with XPath filter.[id],(2))">
  720.                                                 <Compare CompareOp="EQ">
  721.                                                   <ScalarOperator>
  722.                                                     <Identifier>
  723.                                                       <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  724.                                                     </Identifier>
  725.                                                   </ScalarOperator>
  726.                                                   <ScalarOperator>
  727.                                                     <Intrinsic FunctionName="getancestor">
  728.                                                       <ScalarOperator>
  729.                                                         <Identifier>
  730.                                                           <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  731.                                                         </Identifier>
  732.                                                       </ScalarOperator>
  733.                                                       <ScalarOperator>
  734.                                                         <Const ConstValue="(2)" />
  735.                                                       </ScalarOperator>
  736.                                                     </Intrinsic>
  737.                                                   </ScalarOperator>
  738.                                                 </Compare>
  739.                                               </ScalarOperator>
  740.                                             </Predicate>
  741.                                           </Filter>
  742.                                         </RelOp>
  743.                                       </ComputeScalar>
  744.                                     </RelOp>
  745.                                   </Top>
  746.                                 </RelOp>
  747.                                 <RelOp AvgRowSize="8099" EstimateCPU="1.018" EstimateIO="0" EstimateRebinds="48476.1" EstimateRewinds="219.673" EstimateRows="900" LogicalOp="Table-valued function" NodeId="58" Parallel="false" PhysicalOp="Table-valued function" EstimatedTotalSubtreeCost="49573.3">
  748.                                   <OutputList>
  749.                                     <ColumnReference Table="[XML Reader]" Column="id" />
  750.                                     <ColumnReference Table="[XML Reader]" Column="nid" />
  751.                                     <ColumnReference Table="[XML Reader]" Column="tid" />
  752.                                     <ColumnReference Table="[XML Reader]" Column="value" />
  753.                                     <ColumnReference Table="[XML Reader]" Column="lvalue" />
  754.                                     <ColumnReference Table="[XML Reader]" Column="lvaluebin" />
  755.                                   </OutputList>
  756.                                   <RunTimeInformation>
  757.                                     <RunTimeCountersPerThread Thread="0" ActualRebinds="1" ActualRewinds="0" ActualRows="124" ActualEndOfScans="1" ActualExecutions="1" />
  758.                                   </RunTimeInformation>
  759.                                   <TableValuedFunction>
  760.                                     <DefinedValues>
  761.                                       <DefinedValue>
  762.                                         <ColumnReference Table="[XML Reader]" Column="id" />
  763.                                       </DefinedValue>
  764.                                       <DefinedValue>
  765.                                         <ColumnReference Table="[XML Reader]" Column="nid" />
  766.                                       </DefinedValue>
  767.                                       <DefinedValue>
  768.                                         <ColumnReference Table="[XML Reader]" Column="tid" />
  769.                                       </DefinedValue>
  770.                                       <DefinedValue>
  771.                                         <ColumnReference Table="[XML Reader]" Column="value" />
  772.                                       </DefinedValue>
  773.                                       <DefinedValue>
  774.                                         <ColumnReference Table="[XML Reader]" Column="lvalue" />
  775.                                       </DefinedValue>
  776.                                       <DefinedValue>
  777.                                         <ColumnReference Table="[XML Reader]" Column="lvaluebin" />
  778.                                       </DefinedValue>
  779.                                     </DefinedValues>
  780.                                     <Object Table="[XML Reader]" />
  781.                                     <ParameterList>
  782.                                       <ScalarOperator ScalarString="[Expr1000]">
  783.                                         <Identifier>
  784.                                           <ColumnReference Column="Expr1000" />
  785.                                         </Identifier>
  786.                                       </ScalarOperator>
  787.                                       <ScalarOperator ScalarString="(7)">
  788.                                         <Const ConstValue="(7)" />
  789.                                       </ScalarOperator>
  790.                                       <ScalarOperator ScalarString="XML Reader with XPath filter.[id]">
  791.                                         <Identifier>
  792.                                           <ColumnReference Table="[XML Reader with XPath filter]" Column="id" />
  793.                                         </Identifier>
  794.                                       </ScalarOperator>
  795.                                       <ScalarOperator ScalarString="[Expr1027]">
  796.                                         <Identifier>
  797.                                           <ColumnReference Column="Expr1027" />
  798.                                         </Identifier>
  799.                                       </ScalarOperator>
  800.                                     </ParameterList>
  801.                                   </TableValuedFunction>
  802.                                 </RelOp>
  803.                               </NestedLoops>
  804.                             </RelOp>
  805.                           </Extension>
  806.                         </RelOp>
  807.                       </StreamAggregate>
  808.                     </RelOp>
  809.                   </NestedLoops>
  810.                 </RelOp>
  811.               </ComputeScalar>
  812.             </RelOp>
  813.           </QueryPlan>
  814.         </StmtSimple>
  815.       </Statements>
  816.     </Batch>
  817.   </BatchSequence>
  818. </ShowPlanXML>