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
Bawolff
.
Toggle Highlighting
SQL
WITH RECURSIVE cats( cl_to, cat_tree, cl_from, cl_type ) AS (SELECT cl_to, cl_to, cl_from, cl_type from categorylinks where cl_to= 'Mountains_of_Sabah' UNION ALL select page_title, concat( cat_tree, "→", page_title ), categorylinks.cl_from, categorylinks.cl_type from cats inner join page on cats.cl_from = page_id inner join categorylinks on page_title = categorylinks.cl_to ) select replace( cat_tree, '_', ' ' ) 'category tree', replace( page_title, '_', ' ' ) 'File name' from cats inner join page on page_id = cl_from;
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...