Fork of
find template redirects
by Jarekt
This query is marked as a draft
This query has been published
by Jarekt.
SQL
AخA
select page_title, rd_title, count(tl_from) as num
from page
join linktarget on lt_title = page_title and lt_namespace = 10
join templatelinks on tl_target_id = lt_id
join redirect on rd_to = page_id
where page_namespace = 10
and page_is_redirect = 1
group by page_title
ORDER BY num 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.