Fork of enwiki: Redirect-class pages that aren't redirects by Vahurzpu
This query is marked as a draft This query has been published by Vahurzpu.

SQL

AخA
 
SELECT DISTINCT mainpage.page_title, innercat.cl_to
FROM categorylinks outercat
INNER JOIN page outerpage ON outerpage.page_id = outercat.cl_from
INNER JOIN categorylinks innercat ON outerpage.page_title = innercat.cl_to
INNER JOIN page talkpage ON talkpage.page_id = innercat.cl_from
INNER JOIN page mainpage ON mainpage.page_title = talkpage.page_title
WHERE outercat.cl_to = "Disambig-Class_articles"
AND talkpage.page_namespace = 1
AND mainpage.page_namespace = 0
AND mainpage.page_is_redirect = 0
AND "Dmbox" NOT IN (SELECT tl_title FROM templatelinks WHERE tl_from = mainpage.page_id)
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...