Fork of tpmp9 page redirects, talk exists by Saeidpourbabak
This query is marked as a draft This query has been published by Saeidpourbabak.

SQL

AخA
 
USE fawiki_p;
SELECT t.page_title, t.page_len
FROM page AS t
WHERE t.page_namespace  = 1
AND t.page_is_redirect = 0
AND t.page_title LIKE "قنات_%"
AND EXISTS (
  SELECT null
  FROM page AS p JOIN redirect ON rd_from = page_id
  WHERE p.page_namespace = 0
  AND p.page_title = t.page_title
  AND p.page_is_redirect = 1
  AND rd_title LIKE 'فهرست_قناتهای_شهرستان%'
)
ORDER BY t.page_len DESC;
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...