SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 5)
   ExpressionList (children 3)
    Identifier StartDate
    Function if (alias traf_type) (children 1)
     ExpressionList (children 3)
      Function in (children 1)
       ExpressionList (children 2)
        Identifier TraficSourceID
        Literal UInt64_0
      Literal \'type_in\'
      Literal \'other\'
    Function sum (children 1)
     ExpressionList (children 1)
      Identifier Sign
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier test.visits
   Function equals (children 1)
    ExpressionList (children 2)
     Identifier CounterID
     Literal UInt64_842440
   ExpressionList (children 2)
    Identifier StartDate
    Identifier traf_type
   ExpressionList (children 2)
    OrderByElement (children 1)
     Identifier StartDate
    OrderByElement (children 1)
     Identifier traf_type
