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
Solidest
.
Toggle Highlighting
SQL
SELECT CONCAT('[[Категория:', cl_to, ']]') AS CategoryName, COUNT(DISTINCT CONCAT(page_namespace, ':', page_title)) AS PageCount FROM categorylinks LEFT JOIN page ON cl_from = page_id WHERE page_namespace = 14 -- пространство имен для категорий AND cl_to NOT IN ( SELECT DISTINCT CONCAT('Категория:', wdcl.cl_to) FROM categorylinks AS wdcl JOIN page AS wdp ON wdcl.cl_from = wdp.page_id WHERE wdp.page_namespace = 0 -- пространство имен для элементов викиданных ) GROUP BY cl_to ORDER BY PageCount DESC;
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...