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

SQL

x
 
SELECT DISTINCT concat('* {{#target:UT:', user.user_name, '}}')
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')
  AND NOT EXISTS (SELECT 1
                  FROM user_groups AS a
                  WHERE user.user_id = a.ug_user
                    AND a.ug_group = 'bot');
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...