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