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
Perhelion
.
Commons
Toggle Highlighting
SQL
USE commonswiki_p; SET max_statement_time = 300; SELECT CONCAT( '# [https://commons.wikimedia.org/w/index.php?title=File:', page_title, '&action=history', ' ','comment_text',']' ) AS rev_link -- , rev_id COUNT(*) FROM revision JOIN actor ON rev_actor = actor.actor_id JOIN user AS u ON u.user_id = actor.actor_user AND u.user_editcount < 9 JOIN comment AS c ON c.comment_id = rev_comment_id AND c.comment_text LIKE 'Requesting rotation %' JOIN page ON rev_page = page_id AND page_namespace = 6 AND page_is_redirect = 0 WHERE -- gu_home_db = 'commonswiki' -- (select comment.comment_text from comment where comment.comment_id = rev_comment_id) LIKE 'Requesting rotation %' GROUP BY rev_link LIMIT 200;
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...