WITHaddressToSymbol(arrayJoin(trace))ASsymbolSELECTcount()>0FROMsystem.trace_logtWHEREevent_date>=yesterday()ANDquery_id=(SELECTquery_idFROMsystem.query_logWHEREevent_date>=yesterday()ANDqueryLIKE'%test real time query profiler%'ORDERBYevent_timeDESCLIMIT1)ANDsymbolLIKE'%processOrdinaryQuery%';
WITHaddressToSymbol(arrayJoin(trace))ASsymbolSELECTcount()>0FROMsystem.trace_logtWHEREevent_date>=yesterday()ANDquery_id=(SELECTquery_idFROMsystem.query_logWHEREevent_date>=yesterday()ANDqueryLIKE'%test cpu time query profiler%'ORDERBYevent_timeDESCLIMIT1)ANDsymbolLIKE'%Numbers%';