Fork of
Page IDs of files in both Category:Self-published_work and Category:All_free_media
by Novem Linguae
This query is marked as a draft
This query has been published
by Novem Linguae.
SQL
x
# 110,000 Self-published_work, 174,000 All_free_media
SELECT img_name, actor_id, user_id, user_name, img_metadata
FROM categorylinks
JOIN page ON page_id = cl_from
JOIN image ON img_name = page_title
LEFT JOIN actor_image ON actor_id = img_actor
LEFT JOIN user ON user_id = actor_user
WHERE cl_to = "Self-published_work"
AND cl_from IN (
SELECT cl_from
FROM categorylinks
WHERE cl_to = "All_free_media"
)
AND (
user_name NOT IN (
'Orange Suede Sofa',
'Centpacrr',
'Locke Cole'
)
)
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.