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
USE ruwiki_p; SELECT cl_to AS category, COUNT(*) AS article_count FROM categorylinks LEFT JOIN page ON cl_from = page_id WHERE cl_to LIKE 'Статьи_проекта_%' AND page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM categorylinks AS talk_cl WHERE talk_cl.cl_to = CONCAT('Обсуждение_', cl_to) AND talk_cl.cl_from_namespace = 1 AND talk_cl.cl_from NOT IN ( SELECT tl_from FROM templatelinks WHERE tl_namespace = 10 AND tl_title = 'К удалению' ) ) AND NOT ( cl_to LIKE '%важности' OR cl_to LIKE '%уровня' OR cl_to LIKE '%по_уровню' ) GROUP BY cl_to HAVING COUNT(*) BETWEEN 0 AND 50;
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...