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

SQL

AخA
 
SELECT CONCAT('File:', page_title)
FROM categorylinks AS c1
JOIN page ON page_id = c1.cl_from
LEFT JOIN imagelinks ON il_to = page_title AND il_from_namespace = 0
LEFT JOIN categorylinks AS c2 ON c2.cl_from = c1.cl_from AND c2.cl_to = 'All_orphaned_non-free_use_Wikipedia_files'
WHERE page_namespace = 6
  AND c1.cl_to = 'All_non-free_media'
  AND il_from IS NULL
  AND c2.cl_from 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...