This query is marked as a draft This query has been published by Cryptic.

SQL

AخA
 
SELECT page_title AS 'redirect', rd_title AS 'target'
FROM redirect
JOIN page ON page_id = rd_from
WHERE page_namespace = 0
  AND rd_namespace = 0
  AND page_title LIKE CONCAT(rd_title, '\_%')
  AND page_title RLIKE CONCAT('^', rd_title, '_[[:alpha:]]+$')
  AND rd_title RLIKE '^[[:alpha:]]+$';
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...