Fork of Mainspace redirects w/talk in cat by Cryptic
This query is marked as a draft This query has been published by Certes.

SQL

AخA
 
SELECT cl_to AS Category, COUNT(*) AS Number, MIN(main.page_title) AS "Example redirect"
FROM page AS main
JOIN page AS talk ON talk.page_namespace = 1 AND talk.page_title = main.page_title
JOIN categorylinks ON cl_from = talk.page_id
WHERE main.page_namespace = 0
  AND main.page_is_redirect = 1
  AND categorylinks.cl_to LIKE 'Stub-Class%articles'
GROUP BY cl_to
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...