Fork of
[ro-ro] Pages and bytes for edits with a hashtag (by a single user in a timespan)
by Alicia Fagerving (WMSE)
This query is marked as a draft
This query has been published
by Alicia Fagerving (WMSE).
SQL
AخA
SELECT COUNT(DISTINCT(r.rev_page)) as num_pages, SUM(ABS(CAST(r.rev_len as SIGNED)-CAST(r_prev.rev_len as SIGNED))) as abs_diff
FROM wikidatawiki_p.revision r
JOIN wikidatawiki_p.revision r_prev
ON r.rev_parent_id = r_prev.rev_id
WHERE r.rev_timestamp > '20170311000001'
AND r.rev_timestamp < '20180101000000'
AND r.rev_user_text = 'AliciaFagervingWMSE-bot'
AND r.rev_comment LIKE '%#cm%'
AND r.rev_page != 4246474 # Sandbox (Q4115189)
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.