SELECTcount()>0FROMsystem.trace_logtWHEREquery_id=(SELECTquery_idFROMsystem.query_logWHEREqueryLIKE'%test real time query profiler%'ANDqueryNOTLIKE'%system%'ORDERBYevent_timeDESCLIMIT1)ANDsymbolLIKE'%FunctionSleep%';
SELECTcount()>0FROMsystem.trace_logtWHEREquery_id=(SELECTquery_idFROMsystem.query_logWHEREqueryLIKE'%test cpu time query profiler%'ANDqueryNOTLIKE'%system%'ORDERBYevent_timeDESCLIMIT1)ANDsymbolLIKE'%Source%';