SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 2)
    Identifier A.id (alias a_id)
    Subquery (alias b_ids_containing_a_id) (children 1)
     SelectWithUnionQuery (children 1)
      ExpressionList (children 1)
       SelectQuery (children 3)
        ExpressionList (children 1)
         Function groupArraySorted (children 2)
          ExpressionList (children 1)
           Identifier B.id
          ExpressionList (children 1)
           Literal UInt64_5
        TablesInSelectQuery (children 1)
         TablesInSelectQueryElement (children 1)
          TableExpression (children 1)
           TableIdentifier B
        Function has (children 1)
         ExpressionList (children 2)
          Identifier B.A_ids
          Identifier A.id
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier A
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier a_id
   Literal UInt64_20
