SQL
AخA
SELECT page_namespace AS CSns, page_title AS CurrentSubpage
FROM page Ps
WHERE page_namespace>2 AND page_namespace%2=1 AND page_title LIKE "%/%" AND page_is_redirect=0
AND NOT EXISTS (SELECT 1 FROM page WHERE page_namespace=Ps.page_namespace AND page_title=REGEXP_SUBSTR(Ps.page_title, ".*(?=\/)"))
AND NOT EXISTS (SELECT 1 FROM page WHERE page_namespace=Ps.page_namespace AND page_title=REGEXP_SUBSTR(Ps.page_title, ".*?(?=\/)"))
AND NOT EXISTS (SELECT 1 FROM page WHERE page_namespace=Ps.page_namespace-1 AND page_title=Ps.page_title)
ORDER BY page_namespace, 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.
All SQL code is licensed under CC0 License.
Query status: complete
Executed in 70.10 seconds as of Fri, 31 Mar 2023 12:32:50 UTC.