SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 1)
    Asterisk
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 2)
           Identifier day_
           Function if (alias type_1) (children 1)
            ExpressionList (children 3)
             Function equals (children 1)
              ExpressionList (children 2)
               Identifier type_1
               Literal \'\'
             Literal \'all\'
             Identifier type_1
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Subquery (alias t) (children 1)
              SelectWithUnionQuery (children 1)
               ExpressionList (children 1)
                SelectQuery (children 4)
                 ExpressionList (children 2)
                  Identifier day_
                  Identifier type_1
                 TablesInSelectQuery (children 1)
                  TablesInSelectQueryElement (children 1)
                   TableExpression (children 1)
                    TableIdentifier test_grouping_sets_predicate
                 Function equals (children 1)
                  ExpressionList (children 2)
                   Identifier day_
                   Literal \'2023-01-05\'
                 ExpressionList (children 2)
                  ExpressionList (children 2)
                   Identifier day_
                   Identifier type_1
                  ExpressionList (children 1)
                   Identifier day_
   Function equals (children 1)
    ExpressionList (children 2)
     Identifier type_1
     Literal \'all\'
