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