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 MoveProtExpiry, /* pg.page_namespace AS 'namespace', CONCAT( CASE WHEN pg.page_namespace = 0 THEN '' ELSE CONCAT('{{ns:', pg.page_namespace, '}}:') END, pg.page_title ) AS 'Title', */ pg.page_title AS Title, /* CASE WHEN pg.page_is_redirect = 1 THEN 'True' ELSE '' END AS 'Redirect?', */ pgr2.pr_level AS EditProtLevel, pgr2.pr_expiry AS EditProtExpiry 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' AND pg.page_namespace = 0 AND pg.page_is_redirect = 0 ORDER BY 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...