Fork of
Untitled query #29651
by ShakespeareFan00
This query is marked as a draft
This query has been published
by B.
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 templatelinks tAttrib ON tAttrib.tl_from = p.page_id AND tAttrib.tl_title in ('Attribution')
LEFT JOIN templatelinks t ON t.tl_from = p.page_id
AND t.tl_namespace = 10
AND t.tl_title IN ('Self', 'Own')
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.