SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 2)
    Function multiIf (alias key1) (children 1)
     ExpressionList (children 5)
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier key
        Literal \'a\'
      Literal \'AA\'
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier key
        Literal \'b\'
      Literal \'BB\'
      Literal \'other\'
    Asterisk
   TablesInSelectQuery (children 2)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Function remote (alias t1) (children 1)
       ExpressionList (children 3)
        Literal \'127.0.0.{2,3}\'
        Function currentDatabase (children 1)
         ExpressionList
        Identifier t1
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Subquery (alias a) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 2)
           Identifier key (alias key1)
           Identifier attr
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             TableIdentifier t2
     TableJoin (children 1)
      ExpressionList (children 1)
       Identifier key1
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier a.attr
   Set
