Fork of
Editor counts at village pumps
by Cryptic
This query is marked as a draft
This query has been published
by BilledMammal.
SQL
x
SELECT CONCAT(CASE page_namespace WHEN 4 THEN 'WP:' ELSE 'WT:' END, page_title)
FROM page
WHERE page_namespace IN (4, 5)
AND page_title LIKE 'Village\_pump%'
AND (page_title NOT LIKE '%rchive%' -- exclude archives, but not all subpages
OR page_title = 'Village_pump_archive_2004-09-26'); -- and include this page, which has attribution history
SELECT COUNT(DISTINCT actor_user) AS 'logged-in', COUNT(DISTINCT actor_id) AS 'all'
FROM revision
JOIN page ON page_id = rev_page
JOIN actor_revision ON actor_id = rev_actor
JOIN user ON actor_user = user_id
WHERE page_namespace IN (4, 5)
AND page_title LIKE 'Village\_pump%'
AND (page_title NOT LIKE '%rchive%' -- exclude archives, but not all subpages
OR page_title = 'Village_pump_archive_2004-09-26')
AND user_editcount > 500;
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.