Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Ranjithsiji
.
Give the list of files in a category. It also gives the categories attached to each file in that category. This is used to find union, intersection, missing files in a category in Commons. Very usefull in Wiki Loves X
Toggle Highlighting
SQL
SELECT page_title AS file_name, GROUP_CONCAT(cl_to.cl_to) AS categories FROM page JOIN categorylinks AS cl_from ON page.page_id = cl_from.cl_from JOIN categorylinks AS cl_to ON cl_from.cl_from = cl_to.cl_from WHERE cl_from.cl_to = 'Images_from_Wiki_Loves_Birds_India_2024' GROUP BY page_title;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...