This query is marked as a draft This query has been published by Stefan2.

SQL

AخA
 
USE enwiki_p;
SELECT p.page_id FROM page p
INNER JOIN image i ON p.page_title = i.img_name
INNER JOIN commonswiki_p.page cp ON p.page_title = cp.page_title
WHERE p.page_namespace = 6
AND cp.page_namespace = 6
AND cp.page_is_redirect = 1
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...