SQL
AخA
USE fawiki_p;
SELECT CONCAT ('# [[',REPLACE(pl_title,'_',' '),']] , ','[[',REPLACE(rd_title,'_',' '),']]')
FROM pagelinks INNER JOIN page ON pl_title = page_title INNER JOIN redirect ON page_id = rd_from
WHERE pl_from = 4092254 # ویکی•پدیا:ویکی•پروژه تقسیمات کشوری ایران/فاز دوم/تقسیمات کشوری ۱۳۹۵
AND page_namespace = 0
#AND pl_title NOT LIKE "استان%"
AND REPLACE(REPLACE(REPLACE(pl_title,'_',''),'•',''),'ئ','ی') <> REPLACE(REPLACE(REPLACE(rd_title,'_',''),'•',''),'ئ','ی')
ORDER BY pl_title;
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.