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
XXN
.
Toggle Highlighting
SQL
USE wikidatawiki_p; #simplified due to timeout SELECT user_name, redirects/*user_editcount, total,*/ #, CAST(redirects AS INT) / CAST(total AS INT) as "ratio (redirects / total)" FROM user/* LEFT JOIN (SELECT *, COUNT(*) AS total FROM revision JOIN page ON page_id = rev_page WHERE rev_parent_id = 0 AND page_namespace = 0 GROUP BY rev_user) AS created ON created.rev_user = user_id*/ LEFT JOIN (SELECT *, COUNT(*) AS redirects FROM revision JOIN page ON page_id = rev_page WHERE rev_parent_id = 0 AND page_namespace = 0 AND page_is_redirect = 1 GROUP BY rev_user) AS red ON red.rev_user = user_id WHERE redirects > 300 ORDER BY redirects 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...