Fork of knwiki edit count by ~aanzx
This query is marked as a draft This query has been published by ~aanzx.

SQL

x
 
SELECT
  ROW_NUMBER() OVER (ORDER BY COUNT(actor_id) DESC) AS row_number,
  CONCAT("[[Special:Contributions/", actor_name, "]]") AS rev_user_text,
  COUNT(actor_id) AS total_user_editcount,
  SUM(CASE WHEN page_namespace = '0' THEN 1 ELSE 0 END) AS main_namespace_edits
/*user_editcount*/
FROM revision
JOIN actor ON rev_actor = actor_id
JOIN page ON rev_page = page_id
WHERE actor_user IS NOT NULL
  AND page_namespace IN ('0', '10', '102', '104', '106', '100', '2', '828', '14')
  AND NOT (actor_name LIKE '%AWB%' OR actor_name LIKE '%Bot%' OR actor_name LIKE '%bot%' OR actor_name = 'CommonsDelinker')
  AND rev_timestamp BETWEEN 20040101000000 AND 20241231000000
GROUP BY actor_id, actor_name
ORDER BY total_user_editcount DESC
LIMIT 100;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...