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

SQL

AخA
 
USE enwiki_p;
SELECT CONCAT('*{{lf|', REPLACE(REPLACE(p.page_title, '"', '**DOUBLEQUOTE**'), '_', ' '), '}}') FROM page p
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from
INNER JOIN categorylinks c2 ON p.page_id = c2.cl_from
WHERE c1.cl_to = "All_non-free_media"
AND c2.cl_to = "All free media"
AND p.page_namespace = 6
ORDER BY page_id DESC
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...