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

SQL

AخA
 
select sp.page_namespace, sp.page_title, if(tp.page_latest>sp.page_latest, tp.page_latest, sp.page_latest) as page_latest, tp.page_namespace, tp.page_title from redirect
join page sp on sp.page_id = rd_from and sp.page_namespace not in (2, 3)
join page tp on tp.page_title = rd_title and tp.page_namespace = rd_namespace and tp.page_is_redirect = 1
order by page_latest
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...