SQL
AخA
SELECT page_title, cl_to
FROM page
JOIN (SELECT page_title AS article_title
FROM page AS article
WHERE page_namespace = 0
AND page_is_redirect = 0
AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE cl_from=page_id
AND cl_to REGEXP "disambiguation_pages|[Gg]iven_names|[Ss]urnames|[Ss]et_index_articles|[Ll]ists")
ORDER BY RAND()
LIMIT 125000) AS articles ON article_title = page_title
LEFT JOIN categorylinks ON cl_from = page_id
WHERE page_namespace = 1
AND page_is_redirect = 0
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.