SQL
x
SELECT
p.page_id,
p.page_namespace,
CONCAT('2023:', p.page_title) AS prefixed_title
FROM page p
LEFT JOIN page_restrictions pr
ON p.page_id = pr.pr_page
WHERE p.page_namespace = 136
AND pr.pr_page IS NULL
AND (
p.page_title NOT LIKE '%/%'
OR NOT SUBSTRING_INDEX(p.page_title, '/', -1) REGEXP '^[a-z-]{1,10}$'
);
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.