SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Function round (children 1) ExpressionList (children 2) Function abs (children 1) ExpressionList (children 1) Function minus (children 1) ExpressionList (children 2) Identifier COVAR1 Identifier COVAR2 Literal UInt64_6 TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function arrayJoin (alias ID2) (children 1) ExpressionList (children 1) Literal Array_[UInt64_1] Function covarPop (alias COVAR1) (children 1) ExpressionList (children 2) Identifier x_value Identifier y_value TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier series TablesInSelectQueryElement (children 2) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function arrayJoin (alias ID2) (children 1) ExpressionList (children 1) Literal Array_[UInt64_1] Function divide (alias COVAR2) (children 1) ExpressionList (children 2) Function sum (children 1) ExpressionList (children 1) Identifier VAL Function count (children 1) ExpressionList TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Function multiply (alias VAL) (children 1) ExpressionList (children 2) Function minus (children 1) ExpressionList (children 2) Identifier X Identifier AVG_X Function minus (children 1) ExpressionList (children 2) Identifier Y Identifier AVG_Y TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 3) Function toUInt32 (alias ID) (children 1) ExpressionList (children 1) Function arrayJoin (children 1) ExpressionList (children 1) Literal Array_[UInt64_1, UInt64_2, UInt64_3, UInt64_4, UInt64_5, UInt64_6, UInt64_7, UInt64_8, UInt64_9, UInt64_10] Function avg (alias AVG_X) (children 1) ExpressionList (children 1) Identifier x_value Function avg (alias AVG_Y) (children 1) ExpressionList (children 1) Identifier y_value TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier series TablesInSelectQueryElement (children 2) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 3) Identifier i (alias ID) Identifier x_value (alias X) Identifier y_value (alias Y) TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier series TableJoin (children 1) ExpressionList (children 1) Identifier ID TableJoin (children 1) ExpressionList (children 1) Identifier ID2