SQL
AخA
select template, counter, page_id from
(select tl_title as template, count(tl_from) as counter from templatelinks
where tl_from_namespace = 0
and tl_namespace = 10
group by tl_title
order by count(tl_from) desc
limit 100) t join page
on page_namespace = 10
and page_title = tl_title
/*
select * from page_restrictions join page
on pr_page = page_id
where pr_type = 'edit'
limit 10
*/
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.