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
BilledMammal
.
Toggle Highlighting
SQL
WITH all_creations AS (SELECT page_id, page_title, rev_actor FROM page JOIN revision ON page_id = rev_page WHERE page_namespace = 0 AND rev_parent_id = 0 AND rev_timestamp >= '2018' AND rev_timestamp < '2019' AND (revision.rev_len >= 150 #94% of redirects are smaller than this; 95% of articles are created longer. OR revision.rev_len < 16) #very few redirects are smaller than 16 bytes, but a not-insignificant amount of articles start out smaller LIMIT 1000 ), creations AS (SELECT page_id, page_title, rev_actor FROM all_creations LEFT JOIN categorylinks ON cl_from = page_id AND ( cl_to IN ("All_article_disambiguation_pages", "Temporary_maintenance_holdings", "Redirects_to_Wiktionary", "Surnames", "Given_names") OR cl_to LIKE 'List%') WHERE cl_to IS NULL ), deltas AS (SELECT (CAST(childRev.rev_len as SIGNED) - CAST(parentRev.rev_len as SIGNED)) as deltas, page_id, page_title, creations.rev_actor as creator_id, child_rev.rev_actor as editor_id FROM creations JOIN revision AS child_rev ON creations.page_id = revision.rev_page LEFT JOIN revision AS parent_rev ON child_rev.rev_parent_id = parent_rev.rev_id ) SELECT creator.actor_name as Creator, editor.actor_name as Editor, page_title as Article, SUM(deltas) as Contributions FROM deltas JOIN actor AS creator on creator_id = creator.actor_id JOIN actor AS editor on editor_id = editor.editor_id GROUP BY page_title, editor.editor_id
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...