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 LEFT JOIN templatelinks ON page_id = tl_from LEFT JOIN page AS talk_page ON page_title = CONCAT('Обсуждение:', cl_to) WHERE cl_to LIKE 'Статьи_проекта_%' AND page.page_namespace = 0 AND NOT EXISTS ( SELECT 1 FROM templatelinks AS talk_tl WHERE talk_tl.tl_namespace = 10 AND talk_tl.tl_title = 'К удалению' AND tl_from = page_id ) AND talk_page.page_id IS NULL 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...