Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Query to get streak eligibles for NPP Backlog drive - July 2022
by
MPGuy2824
This query is marked as a draft
This query has been published
by
Dr vulpes
.
Toggle Highlighting
SQL
SELECT actor_name, min(reviews) as minPerWeek from ( SELECT actor_name, week, COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `reviews` FROM ( SELECT distinct log_actor, log_page, page_is_redirect, WEEK(log_timestamp) as Week FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE log_timestamp BETWEEN 20220703000000 AND 20220731000000 AND ((log_type = 'patrol' AND log_action = 'patrol') OR (log_type = 'pagetriage-curation' AND log_action = 'reviewed')) AND log_namespace = 0 ) logtemp JOIN actor ON actor_id = log_actor and actor_name in ('Dr vulpes', 'Hughesdarren', 'Rosguill', 'SunDawn', 'Hey man im josh', 'Kj cheetham', 'MPGuy2824', 'Rsjaffe', 'DIVINE', 'Meena', 'Bruxton', 'Curbon7', 'Simon Peter Hughes', 'FormalDude', 'WaddlesJP13', 'Ozzie10aaaa', 'Ingratis', 'Shellwood', 'CollectiveSolidarity', 'Iseult', 'Paul W', 'Slywriter', 'Chris troutman', 'JeBonSer', 'Umakant Bhalerao', 'ComplexRational', 'Robertsky', 'Padgriffin', 'Justanothersgwikieditor', 'Ingenuity', '333-blue', 'Dan arndt', 'Arthistorian1977', 'DoubleGrazing', 'Less Unless', 'Alyo', 'Troutfarm27', 'TheWikiholic', 'HouseBlaster', 'Yeeno', 'PK650', 'Whoisjohngalt', 'Bilorv', 'Graeme Bartlett', 'Devonian Wombat', 'Extraordinary Writ', 'Stuartyeates', 'Andrew Davidson', 'Buidhe', 'IAmChaos', 'Modussiccandi', '49ersBelongInSanFrancisco', 'Jmertel23', 'Firefangledfeathers', 'DanCherek', 'HitroMilanese', 'Bensci54', 'Zippybonzo', 'MarioGom', 'Mhawk10', 'SamHolt6', 'Novem Linguae', 'Pyrrho the Skipper', 'Diannaa', 'Lefcentreright', 'LunaEatsTuna', 'Paradoxsociety', '3PPYB6', 'CaptainEek', 'ProClasher97', 'Tow', 'AngusWOOF', 'Osarius', 'Skarmory', 'TheAafi', 'Gazal world', 'Goldsztajn', 'Htanaungg', 'Markdask', 'Compassionate727', 'Fitindia', 'Nightenbelle', 'Paul2520', 'Sennecaster', 'Engr. Smitty', 'Mike1901', 'Balon Greyjoy', 'The4lines', 'Bada Kaji', 'Gbawden', 'JTtheOG', 'MurielMary', 'SuperSwift', '511KeV', 'AntanO', 'Beauty School Dropout', 'CNMall41', 'Comatmebro', 'Curb Safe Charmer', 'Daask', 'J947', 'Jr8825', 'Kavyansh.Singh', 'Lindsey40186', 'Rubbish computer', 'ThadeusOfNazereth', 'Ulubatli Hasan', 'Visioncurve', 'Zindor') GROUP BY actor_name, week ) x group by actor_name having minPerWeek>=5 order by minPerWeek 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...