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
JayCubby
.
SELECT r.page_title AS redirect_title, t.page_title AS target_title FROM page r JOIN redirect rd ON r.page_id = rd.rd_from JOIN page t ON rd.rd_title = t.page_title AND rd.rd_namespace = t.page_namespace WHERE r.page_namespace = 0 -- Source page is in main namespace AND t.page_namespace = 4; -- Target page is in the special namespace
Toggle Highlighting
SQL
SELECT p1.page_id, p1.page_title, p2.page_namespace, p2.page_title AS target_title FROM page p1 JOIN redirect ON p1.page_id = rd_from JOIN page p2 ON p2.page_id = rd_title WHERE p1.page_namespace = 0 AND p2.page_namespace = -1; -- Special namespace is usually indicated by -1
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...