SQL
AخA
USE arwiki_p;
SELECT
page_title,((select count(pl_from) from pagelinks
where pl_from_namespace = 0
and pl_title = page_title
and pl_namespace = 0
and pl_from in (select page_id from page where page_id = pl_from and page_namespace = 0 and page_is_redirect = 0)
) +
5)
as counts
FROM page
where page_namespace = 0
and page_is_redirect = 0
and page_id not in (select cl_from from categorylinks where cl_to like "%جميع_المقالات_اليتيمة%" and cl_from = page_id)
and page_id not in (select cl_from from categorylinks where cl_to like "%صفحات_توضيح%" and cl_from = page_id)
having counts<2
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.