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
Nemo bis
.
Addendum a https://quarry.wmflabs.org/query/42160 per la sola Wikipedia in italiano.
Toggle Highlighting
SQL
USE itwiki_p; SET @itwikiuserpage = ( SELECT GROUP_CONCAT(TO_BASE64(user_name)) AS u FROM user RIGHT JOIN page -- Check that a local userpage exists as well ON page_namespace = 2 AND REPLACE(page_title, '_', ' ') = user_name AND user_editcount > 200 ); /* SELECT user_name, user_editcount FROM user u JOIN centralauth_p.globaluser gu ON u.user_name = gu.gu_name AND gu.gu_locked = 0 WHERE u.user_editcount >= @min AND u.user_editcount <= @max AND u.user_id NOT IN ( SELECT ipb_user FROM ipblocks WHERE ipb_user > 0 ) AND u.user_id NOT IN ( SELECT ug_user FROM user_groups WHERE ug_group = "bot" ) AND u.user_name NOT RLIKE '.*[Bb]ot.*'; */ SELECT gu.gu_name AS Name FROM centralauth_p.globaluser gu WHERE gu.gu_locked = 0 AND ( gu.gu_name IN ( SELECT u.user_name FROM commonswiki_p.user u WHERE u.user_editcount >= @min AND u.user_editcount <= @max AND ( u.user_name IN ( SELECT (p.page_title, "_", " ") AS name FROM commonswiki_p.categorylinks cl JOIN commonswiki_p.page p ON cl.cl_to = 'User_it-N' AND p.page_id = cl.cl_from ) OR TO_BASE64(u.user_name) IN @itwikiuserpage ) ) ); /* ON REPLACE = u.user_name ) ) OR gu.gu_name IN ( SELECT u.user_name FROM wikidatawiki_p.categorylinks cl JOIN wikidatawiki_p.page p ON cl.cl_to = 'User_it-N' AND p.page_id = cl.cl_from JOIN wikidatawiki_p.user u ON REPLACE(p.page_title, "_", " ") = u.user_name AND u.user_editcount >= @min AND u.user_editcount <= @max ) OR gu.gu_name IN ( SELECT u.user_name FROM metawiki_p.categorylinks cl JOIN metawiki_p.page p ON cl.cl_to = 'User_it' AND cl.cl_sortkey_prefix = 'N' AND p.page_id = cl.cl_from JOIN metawiki_p.user u ON REPLACE(p.page_title, "_", " ") = u.user_name AND u.user_editcount >= @min AND u.user_editcount <= @max ) );*/
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...