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
Halfak (WMF)
.
Toggle Highlighting
SQL
use enwiki_p; SELECT DATABASE() AS wiki, SUM(revisions) AS revisions FROM ( SELECT COUNT(*) AS revisions FROM revision_userindex INNER JOIN user_groups ON ug_user = rev_user AND ug_group = "bot" WHERE rev_timestamp BETWEEN "20150201" AND "20150301" AND rev_user > 0 UNION ALL SELECT COUNT(*) AS revisions FROM archive_userindex INNER JOIN user_groups ON ug_user = ar_user AND ug_group = "bot" WHERE ar_timestamp BETWEEN "20150201" AND "20150301" AND ar_user > 0 ) AS bot_user_revisions; /*use dewiki_p; SELECT DATABASE() AS wiki, SUM(revisions) AS revisions FROM ( SELECT COUNT(*) AS revisions FROM revision_userindex INNER JOIN user_groups ON ug_user = rev_user AND ug_group = "bot" WHERE rev_timestamp BETWEEN "20150201" AND "20150301" AND rev_user > 0 UNION ALL SELECT COUNT(*) AS revisions FROM archive_userindex INNER JOIN user_groups ON ug_user = ar_user AND ug_group = "bot" WHERE ar_timestamp BETWEEN "20150201" AND "20150301" AND ar_user > 0 ) AS bot_user_revisions; use commonswiki_p; SELECT DATABASE() AS wiki, SUM(revisions) AS revisions FROM ( SELECT COUNT(*) AS revisions FROM revision_userindex INNER JOIN user_groups ON ug_user = rev_user AND ug_group = "bot" WHERE rev_timestamp BETWEEN "20150201" AND "20150301" AND rev_user > 0 UNION ALL SELECT COUNT(*) AS revisions FROM archive_userindex INNER JOIN user_groups ON ug_user = ar_user AND ug_group = "bot" WHERE ar_timestamp BETWEEN "20150201" AND "20150301" AND ar_user > 0 ) AS bot_user_revisions; use ptwiki_p; SELECT DATABASE() AS wiki, SUM(revisions) AS revisions FROM ( SELECT COUNT(*) AS revisions FROM revision_userindex INNER JOIN user_groups ON ug_user = rev_user AND ug_group = "bot" WHERE rev_timestamp BETWEEN "20150201" AND "20150301" AND rev_user > 0 UNION ALL SELECT COUNT(*) AS revisions FROM archive_userindex INNER JOIN user_groups ON ug_user = ar_user AND ug_group = "bot" WHERE ar_timestamp BETWEEN "20150201" AND "20150301" AND ar_user > 0 ) AS bot_user_revisions; use wikidata_p; SELECT DATABASE() AS wiki, SUM(revisions) AS revisions FROM ( SELECT COUNT(*) AS revisions FROM revision_userindex INNER JOIN user_groups ON ug_user = rev_user AND ug_group = "bot" WHERE rev_timestamp BETWEEN "20150201" AND "20150301" AND rev_user > 0 UNION ALL SELECT COUNT(*) AS revisions FROM archive_userindex INNER JOIN user_groups ON ug_user = ar_user AND ug_group = "bot" WHERE ar_timestamp BETWEEN "20150201" AND "20150301" AND ar_user > 0 ) AS bot_user_revisions;*/
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...