Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Popular templates on Thai Wikipedia w/ protection level
by
Patsagorn Y.
This query is marked as a draft
This query has been published
by
XXBlackburnXx
.
Toggle Highlighting
SQL
SELECT lt.lt_title AS `title`, COUNT(lt.lt_title) AS `count`, pr.pr_level AS `protection_level` FROM templatelinks tl LEFT JOIN linktarget lt ON tl.tl_target_id = lt.lt_id LEFT JOIN page_restrictions pr ON pr.pr_page = tl.tl_target_id WHERE lt.lt_namespace = 10 GROUP BY lt.lt_title, pr.pr_level HAVING COUNT(lt.lt_title) > 3000 ORDER BY `count` DESC;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...