SQL
AخA
SELECT cl1.cl_to AS 'Category', COUNT(*) AS 'Orphaned articles'
FROM categorylinks cl1
JOIN categorylinks cl2
ON cl2.cl_from = cl1.cl_from
AND cl2.cl_to = 'All_orphaned_articles'
GROUP BY cl1.cl_to
ORDER BY COUNT(*) 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.