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
WhitePhosphorus
.
A is an article, R is a redirect targeting to A, and there is a link from A to R
Toggle Highlighting
SQL
USE zhwiki_p; SELECT source_title, redirect_title FROM (SELECT fromP.page_title AS redirect_title, toP.page_id AS source_id, toP.page_title AS source_title FROM redirect JOIN page AS fromP ON fromP.page_id = rd_from JOIN page AS toP ON toP.page_title = rd_title WHERE r.rd_namespace = 0) JOIN pagelinks ON pl_from = source_id AND pl_title = redirect_title;
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...