SQL
AخA
USE fawiki_p;
SELECT concat('# [[',page_title,']] ,'),count(pl_title)
FROM page JOIN pagelinks ON pl_from = page_id
WHERE page_namespace = 0
AND page_is_redirect = 0
AND pl_title IN (
SELECT page_title
FROM page JOIN page_props ON page_id = pp_page
WHERE pp_propname = 'disambiguation'
)
GROUP BY page_id
ORDER BY COUNT(pl_title) DESC;
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.