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

SQL

x
 
SELECT site, COUNT(*)
FROM (SELECT REGEXP_REPLACE(el_to, '^(?:[a-z]*:)?//([^/]*)(?:.*)', '\\1') AS site
      FROM page tp
      JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
      JOIN externallinks ON el_from = mp.page_id
      JOIN categorylinks ON cl_from = tp.page_id
      WHERE cl_to IN ('All_WikiProject_Medicine_articles', 'WikiProject_Anatomy_articles')
        AND tp.page_namespace = 1) sq
GROUP BY site;
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...