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