Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Dabs "Foo and bar" matching articles "Foo and Bar"
by
Certes
This query is marked as a draft
This query has been published
by
Certes
.
Toggle Highlighting
SQL
SELECT Pd.page_title, CONCAT(SUBSTRING_INDEX(Pd.page_title, "_", 1),"_", UPPER(CONVERT(SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+1, 1) USING latin1)), SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+2)) FROM categorylinks JOIN page Pd ON Pd.page_id = cl_from AND Pd.page_title REGEXP "_[a-z]" AND SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+1, 1) REGEXP "[a-z]" AND Pd.page_namespace = 0 JOIN page Pa ON Pa.page_namespace = 0 AND Pa.page_is_redirect = 0 AND Pa.page_title = CONCAT(SUBSTRING_INDEX(Pd.page_title, "_", 1),"_", UPPER(CONVERT(SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+1, 1) USING latin1)), SUBSTRING(Pd.page_title, LOCATE("_", Pd.page_title)+2)) WHERE cl_to = "All_disambiguation_pages" AND cl_type = "page"
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...