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
Saeidpourbabak
.
Toggle Highlighting
SQL
use enwiki_p; select page_title from page as p where page_namespace = 0 and page_is_redirect = 0 and not exists ( select null from page_props where pp_page = page_id and pp_propname = 'disambiguation' ) and page_title like "_%\_(%" and not exists ( select null from page as p2 left join page_props as pp2 on pp2.pp_page = p2.page_id where pp2.pp_propname = 'disambiguation' and ( p2.page_title = mid(p.page_title, 1, locate('_(', p.page_title) - 1) or p2.page_title = concat( mid(p.page_title, 1, locate('_(', p.page_title)), '(disambiguation)' ) ) ) and exists ( select null from page as p3 where p3.page_title like concat( mid(p.page_title, 1, locate('_(', p.page_title)), '(%' ) and p3.page_namespace = 0 and p3.page_is_redirect = 0 having count(*) = 1 ) order by 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...