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
Erutuon
.
Count of edits that created a page in the mainspace by users who are currently in the bot usergroup and users who are not.
Toggle Highlighting
SQL
use mgwiktionary_p; /* select if(rev_actor in (select actor_id from actor join user_groups on ug_user = actor_user where ug_group = 'bot'), 'bot', 'not') as botness, count(*) as count from revision where parent_id = 0 group by botness; */ select * from revision where parent_id = 0 limit 10; -- select * from revision limit 10; /* select rev_actor, rev_page from revision_userindex group by rev_page order by rev_timestamp asc limit 10; */ /* select if(ug_group = 'bot', 'bot', 'not') as botness, count(*) as count from revision_userindex join actor on actor_id = rev_actor join user_groups on ug_user = actor_user group by rev_page, botness order by rev_page, rev_timestamp desc limit 10; */ /* select * from logging join actor on actor_id = log_actor join comment on comment_id = log_comment_id where log_type = 'create' limit 10; */ /* select * from user join user_groups on ug_user = user_id where ug_group = 'bot' 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...