selectlength(thread_ids)<=4fromsystem.query_logwhereevent_date>=today()-1andlower(query)like'%select x from table_01323_many_parts%'andtype='QueryFinish'orderbyquery_start_timedesclimit1;
selectlength(thread_ids)<=20fromsystem.query_logwhereevent_date>=today()-1andlower(query)like'%select x from table_01323_many_parts order by x%'andtype='QueryFinish'orderbyquery_start_timedesclimit1;