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
Lectrician1
.
Toggle Highlighting
SQL
#SELECT # AVG(num_revisions) AS average_num_revisions_per_day, # AVG(avg_comment_length) AS average_avg_comment_length_per_day #FROM ( # SELECT # date, # COUNT(rc_timestamp) AS num_revisions, # AVG(true_comment_length) AS avg_comment_length # FROM ( SELECT SUBSTRING(rc.rc_timestamp, 1, 8) AS date, rc.rc_timestamp, LENGTH( -- Remove /* */ comments from the comment_text REGEXP_REPLACE(cr.comment_text, '/\\*.*?\\*/', '') ) AS true_comment_length FROM recentchanges rc JOIN comment_recentchanges cr ON rc.rc_comment_id = cr.comment_id WHERE rc.rc_bot <> 1 AND rc.rc_source = "mw.edit" AND NOT SUBSTRING(rc.rc_timestamp, 1, 8) = DATE_FORMAT(NOW(), '%Y%m%d') AND cr.comment_text NOT LIKE '%quickstatements%' AND cr.comment_text LIKE '/* wbsetdescription-add%' LIMIT 100 # ) AS latest_non_bot_revisions # GROUP BY date #) AS avg_values;
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...