SQL
AخA
USE enwiki_p;
SELECT DISTINCT art.page_id, art.page_title, talk.cl_to
FROM (SELECT page_id, page_title, cl_to
FROM categorylinks
JOIN page
ON cl_from=page_id
WHERE cl_to IN ('Top-importance_medicine_articles', 'High-importance_medicine_articles',
'Mid-importance_medicine_articles')
AND page_namespace=1) AS talk
JOIN page art
ON (talk.page_title=art.page_title
AND art.page_namespace=0)
JOIN categorylinks cl
ON cl.cl_from=art.page_id
WHERE cl.cl_to REGEXP '^People.*'
OR cl.cl_to REGEXP '.*people$'
OR cl.cl_to REGEXP '^\\d+_deaths$'
OR cl.cl_to REGEXP '^\\d+_births$';
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.