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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; SELECT rev_user_text, SUM(freq) TotalEdits, SUM( CASE WHEN page_namespace = 0 THEN freq ELSE 0 END ) / SUM(freq) ContentEdits FROM ( SELECT rev_user_text, page_namespace, COUNT(*) freq FROM revision JOIN page ON rev_page = page_id WHERE rev_user IN ( SELECT rev_user FROM revision JOIN user_group ON rev_user = ug_user AND ug_group = 'bot' WHERE rev_timestamp > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 DAY), '%Y%m%d000000') AND rev_user <> 0 AND ug_user IS NULL ) GROUP BY rev_user, page_namespace ORDER BY rev_user, page_namespace ) last30days
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...