SQL
AخA
USE fawiki_p;
SELECT concat('* [[:رده:',REPLACE(cat_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(cat_title,'_',' '),'مناطق مسکونی شهرستان','مناطق مسکونی در شهرستان'),']]')
FROM category
WHERE cat_title LIKE "مناطق_مسکونی_شهرستان%"
AND cat_title NOT LIKE '%،%'
AND cat_title NOT LIKE '%(%'
#AND cat_pages-cat_subcats > 0
ORDER BY cat_pages-cat_subcats 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.