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

SQL

x
 
SELECT
  t.page_title AS template_title,
  COUNT(l.tl_from) AS usage_count
FROM page AS t
JOIN templatelinks AS l
  ON l.tl_title = t.page_title
  AND l.tl_namespace = t.page_namespace
WHERE t.page_namespace = 10
GROUP BY t.page_title, t.page_id
HAVING COUNT(l.tl_from) = 1
   AND MIN(l.tl_from) = t.page_id
ORDER BY t.page_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.

Checking query status...