Fork of
Gender of editors to specific page
by Pppery
This query is marked as a draft
This query has been published
by Cryptic.
SQL
AخA
SELECT (CASE
WHEN actor_user IS NULL then 'ip'
WHEN up_value IS NULL then 'unspecified'
ELSE up_value
END) AS gender_or_ip,
COUNT(*)
FROM (SELECT DISTINCT actor_user, actor_name, up_value
FROM revision
JOIN actor ON actor_id = rev_actor
LEFT JOIN user_properties ON up_user = actor_user AND up_property = 'gender'
WHERE rev_page = (SELECT page_id
FROM page
WHERE page_namespace = 4 AND page_title = 'Community_response_to_the_Wikimedia_Foundation''s_ban_of_Fram')
OR (rev_page = (SELECT page_id
FROM page
WHERE page_namespace = 4 AND page_title = 'Bureaucrats''_noticeboard')
AND rev_timestamp BETWEEN '201906101756' AND '201906111255')) q1
GROUP BY gender_or_ip;
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.