SQL
x
SELECT log_timestamp,
log_title,
(
SELECT COUNT(*)
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN archive_userindex ON ar_actor = actor_id
JOIN user ON actor_user = user_id
WHERE user_name = REPLACE(log_title, '_', ' ')
AND rev_timestamp > log_timestamp OR ar_timestamp > log_timestamp
) AS edit_count
from logging #NOTE: Timestamp may not be last time adminship granted
WHERE logging.log_type="rights" AND logging.log_action="rights"
AND logging.log_params REGEXP 'newgroups".*"sysop"'
GROUP BY log_title
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.