Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Cascade-protected pages on enwiki by namespace
by
Lucas Werkmeister (WMDE)
This query is marked as a draft
This query has been published
by
Lucas Werkmeister (WMDE)
.
Cascade-protected pages that aren’t already protected directly. For T235154.
Toggle Highlighting
SQL
USE `dewiki_p`; SELECT `page_namespace`, COUNT(*) AS `count` FROM `page` JOIN `templatelinks` ON `page_title` = `tl_title` AND `page_namespace` = `tl_namespace` JOIN `page_restrictions` ON `tl_from` = `pr_page` WHERE `pr_cascade` = 1 AND NOT EXISTS ( SELECT * FROM `page_restrictions` WHERE `pr_page` = `page_id` ) GROUP BY `page_namespace` 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...