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

SQL

AخA
 
SELECT REGEXP_REPLACE(Ps.page_title, '^(.)[a-z]+', '\\1.') AS redirect, rd_title AS target,
 GROUP_CONCAT(Ps.page_title ORDER BY Ps.page_title SEPARATOR ", ") AS candidates
FROM page Ps
JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title LIKE "Q%" AND Pa.page_title = REGEXP_REPLACE(Ps.page_title, '^(.)[a-z]+', '\\1.')
 AND Pa.page_is_redirect=1
JOIN redirect ON rd_from=Pa.page_id
WHERE Ps.page_namespace=0 AND Ps.page_title LIKE "Q%" AND CONVERT(Ps.page_title USING BINARY) REGEXP '^[A-Z][a-z]+_[a-z]+$' 
GROUP BY redirect
HAVING candidates != target
ORDER BY redirect
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...