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
AkatsukiRinn
.
Toggle Highlighting
SQL
SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20151014211400) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20060422151728) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20030302080424) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20030526180602) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(user.user_registration - 20100528113754) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('sysop') and user_former_groups.ufg_group != 'bot') as potentially_matched right join user_former_groups on potentially_matched.user_id = user_former_groups.ufg_user GROUP BY potentially_matched.user_id, potentially_matched.user_registration HAVING COUNT(*) = 1; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(user.user_registration - 20180126010740) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('abusefilter','extendedconfirmed','reviewer','rollbacker') and user_former_groups.ufg_group != 'bot') as potentially_matched right join user_former_groups on potentially_matched.user_id = user_former_groups.ufg_user GROUP BY potentially_matched.user_id, potentially_matched.user_registration HAVING COUNT(*) = 4; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(user.user_registration - 20140425230847) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('rollbacker') and user_former_groups.ufg_group != 'bot') as potentially_matched right join user_former_groups on potentially_matched.user_id = user_former_groups.ufg_user GROUP BY potentially_matched.user_id, potentially_matched.user_registration HAVING COUNT(*) = 1; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20080603032401) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20051212220130) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20051206094608) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(user.user_registration - 20050619012119) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('autoreviewer','extendedconfirmed','filemover','patroller','reviewer','rollbacker') and user_former_groups.ufg_group != 'bot') as potentially_matched right join user_former_groups on potentially_matched.user_id = user_former_groups.ufg_user GROUP BY potentially_matched.user_id, potentially_matched.user_registration HAVING COUNT(*) = 6; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20080823181005) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20100427111604) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20180225224613) < 180 * 24 * 60 * 60) AS r1 JOIN (SELECT CEIL(RAND() *(SELECT MAX(r3.user_id) FROM (SELECT * FROM user where ABS(user_registration - 20050131115657) < 180 * 24 * 60 * 60) AS r3)) AS id) AS r2 WHERE r1.user_id >= r2.id LIMIT 1000) AS potentially_matched LEFT JOIN user_former_groups ON potentially_matched.user_id = user_former_groups.ufg_user WHERE user_former_groups.ufg_group IS NULL LIMIT 200; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount, COUNT(*) FROM (SELECT user.user_id, user.user_registration, user.user_editcount, user_former_groups.ufg_group FROM user right join user_former_groups on user.user_id = user_former_groups.ufg_user where ABS(user.user_registration - 20070627011848) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('rollbacker') and user_former_groups.ufg_group != 'bot') as potentially_matched right join user_former_groups on potentially_matched.user_id = user_former_groups.ufg_user GROUP BY potentially_matched.user_id, potentially_matched.user_registration HAVING COUNT(*) = 1;
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...