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, 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 - 20130810033410) < 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 FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20071026112823) < 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 - 20030720175139) < 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 - 20150421231453) < 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 - 20120312172445) < 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 - 20100902143052) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 3; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20130430042329) < 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 - 20061206172519) < 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 - 20170108072622) < 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 - 20141101192646) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 3; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20061231143144) < 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 - 20180908235625) < 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 - 20060717013249) < 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 - 20080114000734) < 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 - 20050704222045) < 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;
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...