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
Dispenser
.
Toggle Highlighting
SQL
SELECT CONCAT("[[",si.page_title,"]]") AS SetIndex, b.cl_to AS SiType, CONCAT("[[",dab.page_title,"]]") AS Dab FROM page AS si LEFT JOIN categorylinks AS b ON b.cl_from=si.page_id AND b.cl_to LIKE "%name%" JOIN categorylinks AS a ON a.cl_from=si.page_id AND a.cl_to IN ("All_set_index_articles") JOIN page AS dab ON dab.page_namespace=0 AND dab.page_title = CONCAT(si.page_title, "_(disambiguation)") JOIN page_props ON pp_page=dab.page_id AND pp_propname="disambiguation" WHERE si.page_namespace=0 GROUP BY SetIndex
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...