Query Run
select CONCAT('# [[',page.page_title,']]') from page where page_namespace = 0 5 years ago