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

SQL

AخA
 
USE arwiki_p;
SELECT
  article.page_title as "المقالة"
FROM revision
inner join actor
on actor_id = rev_actor
INNER JOIN page article ON 
    article.page_id = rev_page AND
    article.page_namespace = 0
INNER JOIN page talk ON 
    talk.page_title = article.page_title AND
    talk.page_namespace = 1
INNER JOIN categorylinks ON 
    cl_from = talk.page_id
WHERE 
    cl_to != "مقالات_فريق_عمل_تاريخ_السعودية"
    and article.page_id in (select cl_from from categorylinks  
                            where cl_to ='مواقع_أثرية_في_السعودية' 
                           ) 
GROUP BY article.page_id
#ORDER BY edits DESC
#LIMIT 25;
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...