Fork of
Non-redirect subpages of redirect pages
by Cryptic
This query is marked as a draft
This query has been published
by Bamyers99.
SQL
AخA
SELECT CONCAT('[[{{ns:', sp.namespace, '}}:', REPLACE(sp.pagetitle, '_', ' '), ']]')
FROM s51454__TemplateParamBot_p.enwiki_subpages AS sp
JOIN page AS sp_page
ON sp_page.page_namespace = sp.namespace
AND sp_page.page_title LIKE CONCAT(sp.pagetitle, '/%')
WHERE sp_page.page_is_redirect <> 1
ORDER BY sp.namespace, sp.pagetitle
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.