SQL
AخA
USE fawiki_p;
SELECT CONCAT ('# [[',page_title,']] > [[:en:',ll_title,']]')
FROM page
INNER JOIN langlinks ON page_id = ll_from JOIN redirect
WHERE page_namespace = 0 and rd_from=page_id and ll_lang='en'
AND page_is_redirect = 1
GROUP BY page_title
ORDER BY COUNT(ll_from) DESC;
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.