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
Certes
.
Now changed to check non-article talk namespaces (odd ns except 1), changed to non-article talk namespaces
Toggle Highlighting
SQL
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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...