SQL
AخA
WITH templates (t_title) AS
(
SELECT page_title
FROM categorylinks
JOIN page ON page_id = cl_from
WHERE page_namespace = 10
AND cl_to = 'Lang-x_templates'
)
SELECT t_title, COUNT(*)
FROM templates
JOIN linktarget ON lt_namespace = 10 AND lt_title = t_title
JOIN templatelinks ON tl_target_id = lt_id
GROUP BY t_title;
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.