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
Hey man im josh
.
Toggle Highlighting
SQL
SELECT actor_name as "Creator", COUNT(IF(logtemp.page_is_redirect = 0, 1, NULL)) as `Articles`, COUNT(DISTINCT(logtemp.log_page)) AS `Total` SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 01 THEN 1 ELSE 0 END) AS "Jan", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 02 THEN 1 ELSE 0 END) AS "Feb", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 03 THEN 1 ELSE 0 END) AS "Mar", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 04 THEN 1 ELSE 0 END) AS "Apr", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 05 THEN 1 ELSE 0 END) AS "May", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 06 THEN 1 ELSE 0 END) AS "Jun", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 07 THEN 1 ELSE 0 END) AS "Jul", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 08 THEN 1 ELSE 0 END) AS "Aug", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 09 THEN 1 ELSE 0 END) AS "Sep", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 10 THEN 1 ELSE 0 END) AS "Oct", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 11 THEN 1 ELSE 0 END) AS "Nov", SUM(CASE WHEN SUBSTRING(log_timestamp,5,2) = 12 THEN 1 ELSE 0 END) AS "Dec" FROM ( SELECT distinct log_actor, log_page, page_is_redirect FROM logging_userindex JOIN page ON page_title = log_title AND page_namespace = log_namespace WHERE ((log_type = 'patrol' AND log_action = 'patrol') OR (log_type = 'pagetriage-curation' AND log_action = 'reviewed')) AND log_namespace = 0 AND log_timestamp BETWEEN 20230801000000 AND 20230901000000 ) logtemp JOIN actor ON actor_id = log_actor GROUP BY log_actor ORDER BY `Total` DESC LIMIT 150;
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...