CreateQuery mv (children 4)
 Identifier mv
 Columns definition (children 1)
  ExpressionList (children 1)
   ColumnDeclaration b_id (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 2)
      Identifier uniq
      DataType Nullable (children 1)
       ExpressionList (children 1)
        DataType String
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 2)
    ExpressionList (children 1)
     Function uniqState (alias b_id) (children 1)
      ExpressionList (children 1)
       Function if (children 1)
        ExpressionList (children 3)
         Function notEquals (children 1)
          ExpressionList (children 2)
           Identifier a_id
           Literal \'\'
         Identifier a_id
         Literal NULL
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier a
 ViewTargets
