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
Bdijkstra
.
pages linking to a redirect that redirects to the source page - sns, st: source page - tns, tt: target page
Toggle Highlighting
SQL
SELECT ps.page_namespace AS sns, ps.page_title AS st, pt.page_namespace AS tns, pt.page_title AS tt FROM pagelinks, page pt, redirect, page ps WHERE pl_namespace=pt.page_namespace AND pl_title=pt.page_title AND pt.page_is_redirect=1 AND pt.page_id=rd_from AND rd_namespace=ps.page_namespace AND rd_title=ps.page_title AND pl_from=ps.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...