SQL
AخA
USE eswiki_p;
SELECT page_title, COUNT(*)
FROM (SELECT * FROM page_props WHERE pp_propname = 'disambiguation') AS disambigs
JOIN page
ON page_id = pp_page
JOIN (SELECT * FROM pagelinks WHERE pl_from_namespace = 0) AS links
ON pl_title = page_title AND pl_namespace = page_namespace
GROUP BY page_title
ORDER BY COUNT(*) DESC, page_title
LIMIT 500;
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.