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
MarioGom
.
Toggle Highlighting
SQL
SET STATEMENT max_statement_time = 600 FOR SELECT user_name, total, weekdays, dist_days FROM ( SELECT rc_actor, COUNT(*) AS total, SUM( CASE WHEN day = 6 THEN 0 WHEN day = 7 THEN 0 ELSE 1 END ) AS weekdays, COUNT(DISTINCT day) AS dist_days, SUM( CASE WHEN rc_type = 0 THEN 1 ELSE 0 END ) AS total_edits FROM ( SELECT rc_actor, rc_type, DAYOFWEEK(rc_timestamp) AS day FROM recentchanges_userindex AS recentchanges -- INNER JOIN change_tag ON recentchanges.rc_id = change_tag.ct_rc_id -- INNER JOIN change_tag_def ON change_tag.ct_tag_id = change_tag_def.ctd_id WHERE rc_ip IS NULL AND rc_bot = 0 -- AND change_tag_def.ctd_name = 'visualeditor' AND rc_timestamp >= "20190101000000" AND rc_type = 0 -- mw.edit (excludes mw.log, mw.categorize, etc) ) AS q GROUP BY rc_actor ) AS p INNER JOIN actor_recentchanges AS actor ON p.rc_actor = actor.actor_id INNER JOIN user ON actor.actor_user = user.user_id WHERE -- Contribs and distribution total_edits >= 20 AND total = weekdays AND dist_days >= 4 -- Further constraint to registered users AND actor_user IS NOT NULL -- Registration date AND user_registration IS NOT NULL AND user_registration >= "20190101000000" -- AND user_registration < "20200101000000" -- Filter out some unmarked bots AND user_name NOT LIKE '%Bot' -- Filter out blocked AND ipb_address IS NULL ORDER BY total DESC
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...