Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Cross-wiki upload from pt.wikipedia.org [June 2016] (living & tagged & deleted)
by
Gunnex
This query is marked as a draft
This query has been published
by
Gunnex
.
1st run on 28.07.2017: 549 files: 375 living (2 pending deletion), 174 deleted 2nd run on 19.09.2017: 552 files: 298 living (15 pending deletion), 254 deleted
Toggle Highlighting
SQL
USE commonswiki_p; SELECT CONCAT('[[:File:', img_name, ']]') AS Name, img_timestamp AS UploadDate, 'Not deleted' AS Status, '' AS DeletionDate, '' AS DeletionReason, tl_title AS Template FROM image JOIN page ON page_title = img_name AND page_namespace = 6 LEFT JOIN templatelinks ON page_id = tl_from AND tl_namespace = 10 AND tl_title IN ('Deletion_template_tag', 'No_permission_since', 'No_source_since', 'Copyvio') WHERE img_timestamp > 20170701000000 AND img_timestamp < 20170731240000 AND img_description = 'Cross-wiki upload from pt.wikipedia.org' UNION ALL SELECT CONCAT('[[:File:', oi_name, ']]') AS Name, oi_timestamp AS Uploaddate, 'Overwritten' AS Status, '' AS DeletionDate, '' AS DeletionReason, tl_title AS Template FROM oldimage JOIN page ON page_title = oi_name AND page_namespace = 6 LEFT JOIN templatelinks ON page_id = tl_from AND tl_namespace = 10 AND tl_title IN ('Deletion_template_tag', 'No_permission_since', 'No_source_since', 'Copyvio') WHERE oi_timestamp > 20170701000000 AND oi_timestamp < 20170731240000 AND oi_description = 'Cross-wiki upload from pt.wikipedia.org' UNION ALL SELECT CONCAT('[[:File:', fa_name, ']]') AS Name, fa_timestamp AS Uploaddate, 'Deleted' AS Status, fa_deleted_timestamp AS DeletionDate, fa_deleted_reason AS DeletionReason, '' AS Template FROM filearchive WHERE fa_timestamp > 20170701000000 AND fa_timestamp < 20170731240000 AND fa_description = 'Cross-wiki upload from pt.wikipedia.org' GROUP BY Uploaddate
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...