SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 8)
    Function plus (alias d) (children 1)
     ExpressionList (children 2)
      Function toDate (alias base) (children 1)
       ExpressionList (children 1)
        Literal \'2017-01-01\'
      Function toIntervalMonth (children 1)
       ExpressionList (children 1)
        Identifier number
    Function toDateTime (alias t) (children 1)
     ExpressionList (children 2)
      Identifier d
      Literal \'UTC\'
    Function toQuarter (alias qd) (children 1)
     ExpressionList (children 1)
      Identifier d
    Function toQuarter (alias qt) (children 1)
     ExpressionList (children 1)
      Identifier t
    Function toStartOfQuarter (alias sqd) (children 1)
     ExpressionList (children 1)
      Identifier d
    Function toStartOfQuarter (alias sqt) (children 1)
     ExpressionList (children 1)
      Identifier t
    Function minus (alias qdiff_d) (children 1)
     ExpressionList (children 2)
      Function toRelativeQuarterNum (children 1)
       ExpressionList (children 1)
        Identifier d
      Function toRelativeQuarterNum (children 1)
       ExpressionList (children 1)
        Identifier base
    Function minus (alias qdiff_t) (children 1)
     ExpressionList (children 2)
      Function toRelativeQuarterNum (children 1)
       ExpressionList (children 1)
        Identifier t
      Function toRelativeQuarterNum (children 1)
       ExpressionList (children 1)
        Identifier base
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier system.numbers
   Literal UInt64_24
