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
Danilo.mac
.
Toggle Highlighting
SQL
USE ptwiki_p; SELECT user_name, user_editcount, IF(ug_user, 'tem', IF(ufg_user, 'já teve', 'nunca teve')) bot_flag FROM user LEFT JOIN (SELECT ug_user FROM user_groups WHERE ug_group = 'bot') bots ON user_id = ug_user LEFT JOIN (SELECT ufg_user FROM user_former_groups WHERE ufg_group = 'bot') fbots ON user_id = ufg_user WHERE user_name RLIKE '[Bb][Oo][Tt]' ORDER BY user_editcount DESC
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...