This query is marked as a draft This query has been published by Certes.

SQL

AخA
 
SELECT page_title Title, rd_title Redirect_Target,
 (SELECT COUNT(*) FROM pagelinks WHERE pl_title = page_title AND pl_namespace = 0 AND pl_from_namespace = 0) AS Incoming_Links,
 page_len AS Cur_Size,
 (SELECT MAX(rev_len) FROM revision WHERE rev_page = page_id) AS Max_Size
FROM page
LEFT JOIN redirect ON rd_from = page_id
WHERE page_namespace = 0
AND page_title REGEXP BINARY "\\((.*_)?[Dd]is(?!closure|trict|k\\b|tance|tinguish).*[bgm].*[bgm].*on"
AND NOT page_title REGEXP BINARY "_\\(disambiguation\\)$"
AND page_title NOT LIKE "Ø_\\(Disambiguation\\)%"
AND page_title != "O_\\(Disambiguation\\)"
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.
All SQL code is licensed under CC0 License.

Checking query status...