CreateQuery log (children 3)
 Identifier log
 Columns definition (children 2)
  ExpressionList (children 3)
   ColumnDeclaration collectorReceiptTime (children 1)
    DataType DateTime
   ColumnDeclaration eventId (children 1)
    DataType String
   ColumnDeclaration ruleId (children 1)
    DataType Nullable (children 1)
     ExpressionList (children 1)
      DataType String
  ExpressionList (children 1)
   Projection (children 1)
    ProjectionSelectQuery (children 2)
     ExpressionList (children 3)
      Identifier collectorReceiptTime
      Identifier ruleId
      Function count (children 1)
       ExpressionList (children 1)
        Identifier ruleId
     ExpressionList (children 2)
      Identifier collectorReceiptTime
      Identifier ruleId
 Storage definition (children 3)
  Function MergeTree
  Function toYYYYMMDD (children 1)
   ExpressionList (children 1)
    Identifier collectorReceiptTime
  Function tuple (children 1)
   ExpressionList (children 2)
    Identifier collectorReceiptTime
    Identifier eventId
