SQL
AخA
-- Current code by DeemDeem52
SELECT lt.lt_title AS Target, COUNT(IF(page_title IS NULL, 1, NULL)) AS LinkCount
FROM pagelinks pl
INNER JOIN linktarget lt ON pl.pl_target_id = lt.lt_id
LEFT JOIN page ON page_namespace = 0 AND page_title = lt.lt_title
WHERE pl_from_namespace = 0 AND lt.lt_namespace = 0
AND lt.lt_title NOT LIKE '%_United_States_elections%' AND lt.lt_title NOT LIKE '%_in_Ireland%' AND lt.lt_title NOT LIKE '%_in_France%'
GROUP BY Target
HAVING LinkCount > 500
ORDER BY LinkCount DESC
LIMIT 100;
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.