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
Zache
.
Toggle Highlighting
SQL
use fiwiki_p; select t.*, min(l1.log_timestamp) as min_editor_ts, min(l2.log_timestamp) as min_autoreview_ts, datediff(str_to_date(min(l1.log_timestamp), "%Y%m%d%H%i%S"), str_to_date(min(l2.log_timestamp), "%Y%m%d%H%i%S")) from ( select c, user_name, min(fr_timestamp) as min_ts from ( select sum(1) c, user_name, user_id from flaggedrevs, user where user_id=fr_user and floor(fr_timestamp/1000000) > 20190220 and fr_flags not like "%auto%" group by fr_user ) as t, flaggedrevs as fr2 where c>100 and fr2.fr_user=user_id group by user_id ) as t LEFT JOIN logging_userindex as l1 ON l1.log_title=user_name and l1.log_type="rights" and l1.log_params like "%editor%" LEFT JOIN logging_userindex as l2 on l2.log_title=user_name and l2.log_type="rights" and l2.log_params like "%autoreview%" group by user_name;
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...