SelectWithUnionQuery (children 2)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 10)
    Identifier metric_id
    Function toTypeName (alias c1) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c2) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10\'
          Literal \'DateTime64(4, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c3) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00\'
          Literal \'DateTime64(2, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c4) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10.123\'
          Literal \'DateTime64(4, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:01\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c5) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10.123456\'
          Literal \'DateTime64(4, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00.123\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c6) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10.12\'
          Literal \'DateTime64(1, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00.123\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c7) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10.123\'
          Literal \'DateTime64(0, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c8) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10\'
          Literal \'DateTime(\\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:00\'
          Literal \'DateTime64(3, \\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
    Function toTypeName (alias c9) (children 1)
     ExpressionList (children 1)
      Function timeSeriesInstantRateToGridState (children 2)
       ExpressionList (children 2)
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_1
        Function tupleElement (children 1)
         ExpressionList (children 2)
          Identifier samples
          Literal UInt64_2
       ExpressionList (children 4)
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:00:10.123\'
          Literal \'DateTime64(2, \\\'UTC\\\')\'
        Function CAST (children 1)
         ExpressionList (children 2)
          Literal \'2024-12-12 12:01:01\'
          Literal \'DateTime(\\\'UTC\\\')\'
        Literal UInt64_10
        Literal UInt64_60
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Function clusterAllReplicas (children 1)
       ExpressionList (children 3)
        Literal \'test_shard_localhost\'
        Function currentDatabase (children 1)
         ExpressionList
        Identifier t_resampled_timeseries_64
   ExpressionList (children 1)
    Identifier metric_id
 Identifier Vertical
