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 - 20060623042340) < 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 - 20081217035148) < 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 - 20070513005430) < 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, 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 - 20100129010430) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('ipblock-exempt','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, 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 - 20070727031145) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20051118103346) < 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 - 20070213145711) < 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, 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 - 20041203185805) < 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, 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 - 20100523020659) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20080117015046) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('ipblock-exempt','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(*) = 2; 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 - 20060417222426) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('abusefilter','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(*) = 2; 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 - 20100919002132) < 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 - 20061212204654) < 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 - 20110101180459) < 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, 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 - 20060811064932) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20071019021627) < 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 - 20060827072922) < 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 - 20061230163056) < 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, 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 - 20051019131607) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('reviewer') 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 - 20060128223011) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('abusefilter','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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20060403135046) < 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 - 20030227060222) < 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 - 20051212032327) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20110125073130) < 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 - 20050720161336) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('reviewer') 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 - 20060129232310) < 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 - 20070310021731) < 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, 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 - 20050817011432) < 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 - 20090706150330) < 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 - 20050512181608) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20050206010027) < 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 - 20060904150136) < 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 - 20090818210549) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20060214190123) < 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 - 20070924035805) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20070223231051) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('reviewer') 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 - 20080903182554) < 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 - 20080303220140) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20060211061558) < 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 - 20050811122646) < 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 - 20070219211330) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20070222122303) < 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 - 20060128082024) < 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 - 20040203093618) < 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 - 20070316172713) < 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 - 20090901140547) < 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 - 20080224133036) < 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 - 20040216203806) < 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 - 20060412014856) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20100604132020) < 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 - 20100427034303) < 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 - 20080322064037) < 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, 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 - 20051225032941) < 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 - 20060416201717) < 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 - 20091011174040) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20091001095646) < 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 - 20041223234816) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20060105022951) < 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, 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 - 20060626141507) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20100828023148) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('accountcreator','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(*) = 2; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20030807065227) < 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 - 20040131190110) < 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 - 20041125025255) < 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 - 20030803163139) < 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 - 20031127232148) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('reviewer') 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 - 20100212104405) < 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 - 20061221172134) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('autoreviewer','extendedconfirmed','ipblock-exempt','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(*) = 5; SELECT potentially_matched.user_id, potentially_matched.user_registration, potentially_matched.user_editcount FROM (SELECT * FROM (SELECT * FROM user where ABS(user_registration - 20050204182417) < 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 - 20050925204854) < 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, 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 - 20090925231915) < 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 - 20070526201003) < 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, 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 - 20090617045934) < 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 - 20080531174706) < 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 - 20051111043928) < 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 - 20061013152942) < 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 - 20071030002758) < 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 - 20060709070943) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('autoreviewer','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 - 20090208112712) < 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 - 20100420123600) < 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 - 20070606093510) < 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 - 20050618170519) < 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 - 20080828222936) < 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 - 20051112043043) < 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 - 20050730173346) < 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 - 20070503152904) < 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 - 20061116010152) < 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 - 20060205232209) < 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 - 20060414123001) < 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 - 20050730020753) < 180 * 24 * 60 * 60 and user_former_groups.ufg_group IN ('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(*) = 2; 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 - 20091203142649) < 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...