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
~aanzx
.
Toggle Highlighting
SQL
WITH RECURSIVE subcategories AS ( -- Step 1: Start with the root category SELECT cl_from AS subcat_id FROM categorylinks WHERE cl_to = 'ವರ್ಷಗಳ_ಪ್ರಕಾರ_ಕನ್ನಡ_ಚಲನಚಿತ್ರಗಳು' -- Root category name (replace spaces with underscores) AND cl_type = 'subcat' UNION ALL -- Step 2: Recursively find subcategories SELECT cl_from FROM categorylinks JOIN subcategories ON cl_to = page_title WHERE cl_type = 'subcat'),-- Step 3: Find pages in subcategories pages_in_subcategories AS ( SELECT page_id, page_title FROM page JOIN categorylinks ON cl_from = page_id WHERE cl_from IN (SELECT subcat_id FROM subcategories) AND page_namespace = 0 -- Main namespace (articles))-- Step 4: Output results SELECT CONCAT('https://kn.wikipedia.org/wiki/', REPLACE(page_title, ' ', '_')) AS page_linkFROM pages_in_subcategories;
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...