Fork of Untitled query #29651 by ShakespeareFan00
This query is marked as a draft This query has been published by SQL.

SQL

x
 
USE enwiki_p;
SELECT p.page_id, p.page_len, CONCAT("File:",p.page_title) as page_title FROM page p
INNER JOIN categorylinks c ON c.cl_from = p.page_id AND c.cl_to = 'Files_with_no_machine-readable_source'
LEFT JOIN templatelinks t ON t.tl_from = p.page_id
                          AND t.tl_namespace = 10
                          AND t.tl_title IN ('Non-free_use_rationale', 
                                             'Non-free_use_rationale_2', 
                                             'Non-free_media_rationale',
                                             # Also exclude various deletion processes:
                                             'Ffd', 
                                             'Puf', 
                                             'Deletable_file', 
                                             'Now_Commons',
                                             # Also exclude files with disputed copyright status:
                                             'NFUR_not_needed')
WHERE t.tl_from IS NULL
AND p.page_namespace = 6
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.

This query has never yet been executed