Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Surjection
.
Toggle Highlighting
SQL
SELECT CONCAT(CASE WHEN page.page_namespace = 10 THEN "Template" WHEN page.page_namespace = 828 THEN "Module" ELSE CONVERT(page.page_namespace,char) END, ":", page.page_title) AS formatted_title FROM ( SELECT pr_page FROM page_restrictions WHERE pr_type = 'edit' AND pr_level IS NOT NULL AND (pr_expiry IS NULL OR pr_expiry = 'infinity') AND pr_page NOT IN ( SELECT pr_page FROM page_restrictions WHERE pr_type = 'move' AND pr_level IS NOT NULL AND (pr_expiry IS NULL OR pr_expiry = 'infinity') GROUP BY pr_page ) GROUP BY pr_page ) AS prot INNER JOIN page AS page ON page.page_id = prot.pr_page WHERE page.page_namespace IN (10, 828) GROUP BY page.page_id;
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...