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
HMonroy (WMF)
.
Toggle Highlighting
SQL
use commonswiki_p; SELECT DISTINCT actor_name, img_name, bot FROM ( ( SELECT DISTINCT actor_name, img_name, ( SELECT 1 FROM user_groups WHERE ug_user = user_id AND ug_group = 'bot' ) AS bot FROM image JOIN actor_image ON actor_id = img_actor JOIN user ON user_id = actor_user WHERE img_name like 'First_Men_in_the_Moon%' ) UNION ( SELECT DISTINCT actor_name, oi_name, ( SELECT 1 FROM user_groups WHERE ug_user = user_id AND ug_group = 'bot' ) AS bot FROM oldimage JOIN actor_oldimage ON actor_id = oi_actor JOIN user ON user_id = actor_user WHERE oi_name like 'First_Men_in_the_Moon%' ) ) a;
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...