SQL
AخA
SELECT page_title as pagename,
pl_title as link
FROM pagelinks
JOIN page ON pl_from = page_id
WHERE pl_from_namespace = 0
AND page_is_redirect = 0
AND pl_title IN
(SELECT page_title
FROM categorylinks
JOIN page ON page_id = cl_from
WHERE cl_to = "Disambiguation_pages"
AND cl_from = page_id );
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.