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
Stuartyeates
.
Toggle Highlighting
SQL
-- find redirects to articles covered by WikiProject New Zealand -- SELECT DISTINCT article.page_title, alias.page_title FROM redirect JOIN page AS alias ON rd_from = alias.page_id AND alias.page_namespace = 0 AND rd_namespace = 0 JOIN page AS article ON article.page_title = rd_title AND article.page_namespace = 0 JOIN page AS talk ON article.page_title = talk.page_title AND talk.page_namespace = 1 JOIN categorylinks AS c1 ON talk.page_id = c1.cl_from AND c1.cl_type = "page" AND c1.cl_to = "WikiProject_New_Zealand_articles" -- skip redirects to biographies, since I'm TBAN'd LEFT OUTER JOIN categorylinks AS c2 ON talk.page_id = c2.cl_from AND c2.cl_type = "page" AND c2.cl_to = "WikiProject_Biography_articles" WHERE TRUE LIMIT 100
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...