Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Articles including links redirecting to itself
by
WhitePhosphorus
This query is marked as a draft
This query has been published
by
Estopedist1
.
A is an article, R is a redirect targeting to A, and there is a link from A to R
Toggle Highlighting
SQL
USE etwiki_p; SELECT r.source_title, r.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 rd_namespace = 0) AS r JOIN pagelinks ON pl_from = r.source_id AND pl_title = r.redirect_title LIMIT 10;
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...