This query is marked as a draft This query has been published by DatGuy.

SQL

x
 
SELECT page_title
FROM page
JOIN categorylinks ON page_id = cl_from
WHERE page_namespace = 0 
  AND cl_to = 'Nations_at_the_2016_Summer_Olympics'
  -- exclude ones that were already done when the list was created
  AND NOT (page_title REGEXP '^(Chad|East_Timor|Federated_States_of_Micronesia|Israel|Ivory_Coast|Kuwait|Maldives|Republic_of_the_Congo|Somalia|South_Sudan|Swaziland|Tanzania)')
  AND page_title IN (
    SELECT page_title
    FROM page
    JOIN categorylinks ON page_id = cl_from
    WHERE page_namespace = 0 
      AND cl_to = 'Good_articles' OR cl_to = 'Featured_articles'
  )
ORDER BY page_title;
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.

Checking query status...