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

SQL

AخA
 
select lt_namespace, lt_title, /*group_concat(page_title separator ','),*/ count(distinct page_id) as links from templatelinks
join linktarget on lt_id = tl_target_id
-- and lt_namespace = 10 and lt_title like 'Lang-%'
-- and lt_namespace = 828 and lt_title = 'Lang'
join page on page_id = tl_from and page_namespace = 0 and tl_from_namespace = 0
where page_id in (
  select cl_from from categorylinks
  where cl_to = 'All_disambiguation_pages' and cl_type = 'page'
)
group by tl_target_id
-- having links < 4
order by links 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...