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 DISTINCT log_title FROM logging WHERE log_type='rights' AND log_params REGEXP 'bot' LIMIT 10; SELECT actor_name AS 'username', ug_expiry AS 'bot expiry', MAX(rev_timestamp) AS 'last edit', (UNIX_TIMESTAMP()-UNIX_TIMESTAMP(STR_TO_DATE(rev_timestamp,'%Y%m%d%H%i%s')))/31556952 AS 'years inactive' FROM user_groups, revision, actor WHERE ug_group='bot' AND rev_actor=actor_id AND actor_user IS NOT NULL AND actor_user=ug_user GROUP BY actor_name LIMIT 10
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...