Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Testing
by
DannyS712
This query is marked as a draft
This query has been published
by
DannyS712
.
Toggle Highlighting
SQL
SELECT pgr.pr_expiry AS 'MoveProt expiry', CASE WHEN pg.page_namespace IN (0, 1, 2, 3, 4, 10, 828) THEN '' ELSE pg.page_namespace END AS 'namespace', CONCAT( CASE WHEN pg.page_namespace = 0 THEN '' WHEN pg.page_namespace = 1 THEN 'Talk:' WHEN pg.page_namespace = 2 THEN 'User:' WHEN pg.page_namespace = 3 THEN 'User talk:' WHEN pg.page_namespace = 4 THEN 'Wikipedia:' WHEN pg.page_namespace = 10 THEN 'Template:' WHEN pg.page_namespace = 828 THEN 'Module:' ELSE '' END, pg.page_title ) AS 'Title', CASE WHEN pg.page_is_redirect = 1 THEN 'True' ELSE '' END AS 'Redirect?', pgr2.pr_level AS 'EditProt level', pgr2.pr_expiry AS 'EditProt expiry' FROM page_restrictions pgr JOIN page AS pg ON pgr.pr_page = pg.page_id JOIN page_restrictions AS pgr2 ON pgr2.pr_page = pgr.pr_page WHERE pgr.pr_type = 'move' AND pgr.pr_level = 'sysop' AND pgr2.pr_type = 'edit' AND pgr2.pr_level <> 'sysop' ORDER BY pg.page_namespace, pgr2.pr_level, pg.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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...