Fork of
Untitled query #90250
by IKhitron
This query is marked as a draft
This query has been published
by IKhitron.
SQL
x
select transclusions, count(*) as counter from (
select replace(page_title, '_', ' ') as template, count(*) as transclusions
from page join categorylinks join linktarget join templatelinks
on cl_from = page_id
and lt_namespace = page_namespace
and lt_title = page_title
and tl_target_id = lt_id
where cl_to = "Шаблоны-карточки_по_алфавиту"
and tl_from_namespace = 0
group by page_title
order by transclusions desc
) t group by transclusions
order by transclusions asc
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.