This query is marked as a draft This query has been published by ASammour.

SQL

AخA
 
use arwiki_p;
select page_title,  (select replace(replace(cl_to,"بوابة_",""),"/مقالات_متعلقة","") from categorylinks where cl_from = page_id and cl_to like"%/مقالات_متعلقة" limit 1) from page
inner join categorylinks cl1
on cl1.cl_from = page_id
where cl1.cl_to = "مقالات_بذور_عامة"
and (select concat("بذرة_",replace(replace(cl_to,"بوابة_",""),"/مقالات_متعلقة","")) from categorylinks where cl_from = page_id and cl_to like"%/مقالات_متعلقة" limit 1) in (
select page_title from page where page_namespace = 10 and page_is_redirect = 0)
limit 50;
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.

Checking query status...