SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 3)
   ExpressionList (children 1)
    Function if (children 1)
     ExpressionList (children 3)
      Function and (children 1)
       ExpressionList (children 8)
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalProcessingFilesTotal\'
          Literal UInt64_1
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalProcessingCompressedBytesTotal\'
          Literal UInt64_100000
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalProcessingUncompressedBytesTotal\'
          Literal UInt64_100000
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalAggregationWritePart\'
          Literal UInt64_1
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalAggregationMerge\'
          Literal UInt64_1
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalAggregationCompressedBytes\'
          Literal UInt64_100000
        Function greaterOrEquals (children 1)
         ExpressionList (children 2)
          Function any (children 1)
           ExpressionList (children 1)
            Function arrayElement (children 1)
             ExpressionList (children 2)
              Identifier ProfileEvents
              Literal \'ExternalAggregationUncompressedBytes\'
          Literal UInt64_100000
        Function equals (children 1)
         ExpressionList (children 2)
          Function count (children 1)
           ExpressionList
          Literal UInt64_1
      Literal \'ok\'
      Function concat (children 1)
       ExpressionList (children 4)
        Literal \'fail: \'
        Function toString (children 1)
         ExpressionList (children 1)
          Function count (children 1)
           ExpressionList
        Literal \' \'
        Function toString (children 1)
         ExpressionList (children 1)
          Function any (children 1)
           ExpressionList (children 1)
            Identifier ProfileEvents
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier system.query_log
   Function and (children 1)
    ExpressionList (children 4)
     Function equals (children 1)
      ExpressionList (children 2)
       Identifier current_database
       Function currentDatabase (children 1)
        ExpressionList
     Function equals (children 1)
      ExpressionList (children 2)
       Identifier log_comment
       Literal \'02402_external_disk_mertrics/aggregation\'
     Function ilike (children 1)
      ExpressionList (children 2)
       Identifier query
       Literal \'SELECT%2097152%\'
     Function equals (children 1)
      ExpressionList (children 2)
       Identifier type
       Literal \'QueryFinish\'
