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, '/%')
    JOIN page AS bp
        ON sp.namespace = bp.page_namespace
            AND bp.page_title = sp.pagetitle
    WHERE sp_page.page_is_redirect = 0
        AND bp.page_is_redirect = 1
  
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.

Checking query status...