SQL
AخA
select user_id 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 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
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.