SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 5)
   ExpressionList (children 1)
    Subquery (alias ids) (children 1)
     SelectWithUnionQuery (children 1)
      ExpressionList (children 1)
       SelectQuery (children 2)
        ExpressionList (children 1)
         Function groupArray (children 1)
          ExpressionList (children 1)
           Identifier id
        TablesInSelectQuery (children 1)
         TablesInSelectQueryElement (children 1)
          TableExpression (children 1)
           TableIdentifier bbb
   ExpressionList (children 1)
    Asterisk
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier aaa
   Function has (children 1)
    ExpressionList (children 2)
     Identifier ids
     Identifier id
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier id
