Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Bdijkstra
.
Toggle Highlighting
SQL
SELECT actor_name AS 'username', ug_expiry AS 'bot expiry', `last edit` FROM user_groups, actor LEFT JOIN (SELECT rev_actor, MAX(rev_timestamp) AS `last edit` FROM revision WHERE rev_timestamp REGEXP '^202[1-4]' GROUP BY rev_actor) r ON rev_actor=actor_id WHERE ug_group='bot' AND actor_user IS NOT NULL AND actor_user=ug_user HAVING `last edit` IS NULL OR (UNIX_TIMESTAMP()-UNIX_TIMESTAMP(STR_TO_DATE(`last edit`,'%Y%m%d%H%i%s')))/31556952 > 2.99 # leap days
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...