This query is marked as a draft This query has been published by Alex NB IT.

SQL

AخA
 
select replace(log_title, '_', ' '), count(log_id)
from logging
join user on replace(log_title, '_', ' ') = user_name
where log_type = "thanks" and user_id in (select ug_user from user_groups where ug_group = "bot")
and log_timestamp >= 20240101000000
group by log_title
order by 2 desc;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...