This query is marked as a draft This query has been published by Stang.

SQL

AخA
 
select * from (select distinct user_id from user join user_groups on user.user_id = user_groups.ug_user
    where (user_groups.ug_group = 'extendedconfirmed' or user_groups.ug_group = 'sysop')) A
    left join (select distinct user_id from user join user_groups on user.user_id = user_groups.ug_user
    where user_groups.ug_group = 'bot') B
    on A.user_id = B.user_id limit 10
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...