SQL
AخA
USE enwiki_p;
SELECT DISTINCT CONCAT('* [[', p.page_title, ']]') FROM page p
INNER JOIN categorylinks c1 ON p.page_id = c1.cl_from AND c1.cl_to = "Living_people"
INNER JOIN imagelinks i ON i.il_from = p.page_id
AND i.il_from_namespace = 0
AND RIGHT(i.il_to, 4) <> '.ogg'
INNER JOIN page i_p ON i.il_to = i_p.page_title
INNER JOIN categorylinks c2 ON i_p.page_id = c2.cl_from AND c2.cl_to = "All_non-free_media"
LIMIT 5000
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.