Fork of
nlwiki /doc and .css orphans
by Bdijkstra
This query is marked as a draft
This query has been published
by Geraki.
SQL
AخA
USE elwiki_p;
SELECT page_namespace, page_title
FROM page d
WHERE
page_namespace IN (10, 828) AND ((
page_title REGEXP '/doc$' AND
NOT EXISTS (
SELECT *
FROM page m
WHERE m.page_namespace=d.page_namespace AND m.page_title=REGEXP_REPLACE(d.page_title, '/doc$', ''))
) OR (
page_title REGEXP '/[^/]+\\.css$' AND
NOT EXISTS (
SELECT *
FROM page m
WHERE m.page_namespace=d.page_namespace AND m.page_title=REGEXP_REPLACE(d.page_title, '/[^/]+\\.css$', ''))
))
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.