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
Yamaha5
.
Toggle Highlighting
SQL
USE fawiki_p; SELECT ns_name, pg1.page_title FROM page AS pg1 JOIN toolserver.namespace ON dbname = %s AND page_namespace = ns_id WHERE pg1.page_title LIKE '%/%' AND pg1.page_namespace IN (1,5,7,9,11,13,101) AND NOT EXISTS (SELECT 1 FROM page AS pg2 WHERE pg2.page_namespace = pg1.page_namespace AND pg2.page_title = SUBSTRING_INDEX(pg1.page_title, '/', 1)) AND NOT EXISTS (SELECT 1 FROM page AS pg3 WHERE pg3.page_namespace = pg1.page_namespace - 1 AND pg3.page_title = pg1.page_title) AND NOT EXISTS (SELECT 1 FROM page AS pg4 WHERE pg4.page_namespace = pg1.page_namespace - 1 AND pg4.page_title = SUBSTRING_INDEX(pg1.page_title, '/', 1)) LIMIT 2;
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...