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

SQL

x
 
USE enwiki_p;
SELECT count(clow.cl_from) AS num_articles
FROM (SELECT cl_from
      FROM categorylinks
      WHERE cl_to='Low-importance_medicine_articles') AS cmed
JOIN categorylinks clow
ON cmed.cl_from=clow.cl_from
WHERE clow.cl_to REGEXP "^(((Top|High|Mid|Low|Unknown)-importance)|Unassessed).*articles$"
GROUP BY page_id
HAVING count(*) > 1;
SELECT count(clow.cl_from) AS num_articles
FROM (SELECT cl_from
      FROM categorylinks
      WHERE cl_to='Low-importance_medicine_articles') AS cmed
JOIN categorylinks clow
ON cmed.cl_from=clow.cl_from
WHERE clow.cl_to REGEXP "^(((Top|High|Mid|Low|Unknown)-importance)|Unassessed).*articles$"
GROUP BY page_id
HAVING count(*) = 1;
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...