This query is marked as a draft This query has been published by IKhitron.

SQL

x
 
use hewiki_p;
select  page_id, page_title, pl_title from page as p join pagelinks
on page_id = pl_from
where page_namespace = 0
and pl_namespace = 0
and exists
(select * from page
 where page_title = pl_title
 and page_namespace = 0
 and page_is_redirect
 and exists
 (select * from redirect
  where rd_from = page_id
  and rd_namespace = 0
  and rd_title = p.page_title)
 and 0=0)
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...