SQL
AخA
SELECT
page_namespace AS fns, page_title AS ftitle,
pl_namespace AS tns, pl_title AS ttitle,
(EXISTS (SELECT * FROM page pt WHERE pt.page_namespace=pl_namespace AND pt.page_title=pl_title)) AS 'exists'
FROM pagelinks, page
WHERE pl_from=page_id AND pl_title REGEXP '([#\\<\\>\\[\\]\\|\\{\\}]|\'\'|&#?[A-Za-z0-9]+;)'
ORDER BY `exists`, fns, ftitle
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.