Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
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
.
Toggle Highlighting
SQL
use enwiki_p; 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 "All_disambiguation_pages" NOT IN (SELECT cl_to FROM categorylinks WHERE cl_from = mainpage.page_id) AND "Set_index_article" NOT IN (SELECT tl_title FROM templatelinks WHERE templatelinks.cl_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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...