SQL
AخA
USE fawiki_p;
SELECT CONCAT ('* [[',pg1.page_title,']]')
FROM page as pg1 join page as pg2
WHERE pg1.page_namespace = 0
AND pg1.page_is_redirect = 1
AND pg2.page_is_redirect = 0
AND ( pg1.page_title LIKE "سید%" )
AND (pg2.page_title NOT Like "%سید%" )
ORDER BY pg1.page_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.