selectlength(thread_ids)>=16fromsystem.query_logwherecurrent_database=currentDatabase()ANDevent_date>=today()-1andlower(query)like'%select g % 2 as gg, sum(s) from table_01356_view_threads group by gg order by gg%'andtype='QueryFinish'orderbyquery_start_timedesclimit1;