Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
ASammour
.
Toggle Highlighting
SQL
USE arwiki_p; /*SELECT page_title FROM page where (select count(pl_from) from pagelinks where pl_from = page_id and pl_from_namespace = 0 and pl_namespace = 0 and pl_title not in (select p.page_title from page p where p.page_title = pl_title and p.page_namespace = 0 and p.page_is_redirect = 0 and p.page_id not in (select cl_from from categorylinks where cl_to like "%صفحات_توضيح%" and cl_from = p.page_id)) limit 3) > 2 and page_id in (select cl_from from categorylinks where cl_to like "%جميع_الصفحات_اليتيمة%" and cl_from = page_id) and page_namespace = 0 and page_is_redirect = 0 limit 10;*/ SELECT CONCAT('[[',p.page_title,']]') ,count(pl.pl_from) FROM page p left JOIN categorylinks c ON p.page_id = c.cl_from AND c.cl_to = "جميع_المقالات_اليتيمة" INNER JOIN pagelinks pl ON p.page_title = pl.pl_title inner join redirect on rd_from = pl.pl_from where pl.pl_from_namespace = 0 and p.page_namespace = 0 and pl.pl_namespace = 0 GROUP BY p.page_title having COUNT(pl.pl_from)<3 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...