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
Fl.schmitt
.
Files used on OpenStreetMap by category (category name goes to the c.cl_to WHERE clause).
Toggle Highlighting
SQL
SELECT i.il_from, i.il_to as i.'page_title', i.il_from_namespcae as i.'page_namespace', p.page_id, c.cl_to FROM imagelinks i LEFT JOIN page p on p.page_title = i.il_to LEFT JOIN categorylinks c ON c.cl_from = p.page_id WHERE il_from in (SELECT page_id from page where LEFT(page_title, 15) = 'Files_used_on_O' AND page_namespace = 4) AND c.cl_to = "Files_by_User_Rauenstein/France-68" LIMIT 20;
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...