SQL
AخA
SELECT
r.page_title AS redirect_title,
t.page_title AS target_title
FROM
page r
JOIN
redirect rd ON r.page_id = rd.rd_from
JOIN
page t ON rd.rd_title = t.page_title AND rd.rd_namespace = t.page_namespace
WHERE
r.page_namespace = 0 -- Source page is in main namespace
AND t.page_namespace = 4; -- Target page is in the special namespace
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.