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
Hwem
.
Toggle Highlighting
SQL
USE ruwiki_p; SELECT subpage.page_title AS orphan_subpage FROM page AS subpage LEFT JOIN page AS parent ON parent.page_title = SUBSTRING_INDEX(subpage.page_title, '/', 1) AND parent.page_namespace = subpage.page_namespace LEFT JOIN page AS main_namespace ON main_namespace.page_title = subpage.page_title AND main_namespace.page_namespace = 0 -- Main namespace WHERE subpage.page_namespace = 1 -- Namespace "Talk:" AND subpage.page_title LIKE "%/%" -- Identify subpages (contain '/') AND parent.page_id IS NULL -- Ensure the parent page doesn't exist AND main_namespace.page_id IS NULL -- Exclude pages that exist in the main namespace LIMIT 100;
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...