SQL
AخA
use fawiki_p;
select distinct concat("الگو:", page_title) as Title,SUBSTRING(REGEXP_SUBSTR (comment_text,"(=(.*?)&)"), 2, LENGTH (REGEXP_SUBSTR (comment_text,"(=(.*?)&)"))-2) as Target_link, ll_title as en
from page
join revision on page_id = rev_page and page_title not like '%/%' and page_namespace = 10 and page_is_redirect = 0
left join langlinks on ll_from = page_id
join comment on comment_id = rev_comment_id and comment_text like "%به ویکی•فا%"
where ll_from is null
-- limit 10
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.