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
Bdijkstra
.
Toggle Highlighting
SQL
SELECT page_title, GROUP_CONCAT(DISTINCT pr_type) AS pr_type, GROUP_CONCAT(DISTINCT pr_level) AS pr_level, GROUP_CONCAT(DISTINCT pr_cascade) AS pr_cascade, GROUP_CONCAT(DISTINCT pr_expiry) AS pr_expiry FROM page, page_restrictions WHERE page_namespace=2 AND page_id=pr_page AND NOT IS_IPV4(REGEXP_SUBSTR(page_title, '^[^/]+')) AND NOT IS_IPV6(REGEXP_SUBSTR(page_title, '^[^/]+')) AND NOT EXISTS (SELECT * FROM `user` WHERE REPLACE(REGEXP_SUBSTR(page_title, '^[^/]+'), '_', ' ')=user_name) GROUP BY 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...