SQL
AخA
USE commonswiki_p;
SELECT *
FROM page_restrictions
INNER JOIN page
ON pr_page = page_id
INNER JOIN ipblocks
ON ipb_address = REPLACE(page_title, '_', ' ')
WHERE pr_type = 'edit'
AND pr_level = 'sysop'
AND pr_expiry = 'infinity'
AND ipb_expiry = 'infinity'
AND page_namespace = 3
AND NOT page_title LIKE '%/%'
;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.