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
Fæ
.
Should take 2 to 3 minutes to run. * need to add a join with revisions rather than logging (which is ridiculously slow)
Toggle Highlighting
SQL
USE commonswiki_p; SELECT CONCAT(p1.page_title, "\n", img_name) AS Page, log_type FROM page p1 JOIN redirect ON rd_from = p1.page_id JOIN image ON img_name = rd_title JOIN page p2 ON p2.page_title = img_name JOIN logging ON log_page = p2.page_id WHERE p1.page_namespace = 6 AND p1.page_is_redirect = 1 AND p1.page_touched > DATE_ADD(NOW(), INTERVAL -2 DAY) AND p2.page_touched >= p1.page_touched AND img_user = '1086557' AND log_timestamp >= p1.page_touched LIMIT 1;
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...