< User:B
Flickr images should generally be moved to Commons where there is a process in place for validating the license. Otherwise, when a Flickr user closes their account, we cannot be certain that the license was ever correct and have to delete the image.
https://quarry.wmflabs.org/query/29759
USEenwiki_p; SELECTDISTINCTCONCAT('File:',p.page_title)FROMpagep INNERJOINexternallinksONel_from=p.page_id /*LEFT JOIN imagelinks i ON p.page_title = i.il_to -- AND (i.il_from_namespace = 0) */ LEFTJOINcategorylinksc1ONp.page_id=c1.cl_fromANDc1.cl_to="All_non-free_media" LEFTJOINredirectonrd_from=p.page_id WHERE/*i.il_from IS NULL AND*/p.page_namespace=6 ANDc1.cl_toISNULL-- Exclude fair use - other processes will handle those ANDrd_titleISNULL-- Exclude redirects ANDel_toLIKE'%flickr%' ORDERBYpage_idDESC LIMIT20000