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:', page_namespace, '}}:', page_title, ']]')
FROM page
WHERE page_title IN (
SELECT SUBSTR(page_title, 0, LOCATE(page_title, '/') - 1)
FROM page
WHERE page_title LIKE '%/%'
AND page_namespace = 0
AND page_is_redirect = 0
)
AND page_is_redirect = 1
AND page_namespace = 0
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.