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
PhantomTech
.
Begin with "raw" set of edits, further filtering and add information to allow filtering based on correlation, filter "correlated"
Toggle Highlighting
SQL
SELECT filtered.user_registration AS registration, filtered.user_name AS username, filtered.user_editcount, filtered.page_title, filtered.num_edits AS page_edits_by_user FROM ( SELECT unfiltered.user_registration, unfiltered.user_name, unfiltered.user_editcount, unfiltered.page_title, unfiltered.num_edits, COUNT(unfiltered.page_id) OVER (PARTITION BY unfiltered.page_id) AS num_users_edited_page FROM ( SELECT user.user_id, user.user_registration, user.user_name, user.user_editcount, page.page_id, page.page_title, page.page_namespace, COUNT(page.page_id) as num_edits FROM user JOIN actor ON actor.actor_user = user.user_id JOIN revision_userindex ON revision_userindex.rev_actor = actor.actor_id JOIN page ON page.page_id = revision_userindex.rev_page WHERE true # Only scan users who registered after date AND user.user_registration > 20220000000000 # Only scan users who's name matches regex AND user.user_name regexp "^Coop[0-9]{3,}$" GROUP BY user.user_id, page.page_id ) as unfiltered WHERE true # Restrict results to specific namespace # AND unfiltered.page_namespace IN (0) ) AS filtered WHERE true # Filter out pages where no other matched user edited the page AND num_users_edited_page > 1 ORDER BY num_users_edited_page, page_edits_by_user 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...