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 templatelinks t ON t.tl_from = p.page_id AND t.tl_namespace = 10 AND t.tl_title = 'Deletable_file'
INNER JOIN categorylinks c ON c.cl_from = p.page_id
LEFT JOIN page p2 ON c.cl_to = p2.page_title AND p2.page_namespace = 14
WHERE p2.page_id IS NULL
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...