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

SQL

x
 
SET @basecat='Non-lemma_forms_by_language';
SET max_recursive_iterations=6;
WITH RECURSIVE deepcat AS
(
  SELECT CAST(@basecat AS VARCHAR(255)) AS page_title,
         CAST('' AS VARCHAR(255)) AS cl_to
  UNION
  SELECT p2.page_title,
         cl2.cl_to
  FROM categorylinks AS cl2
  JOIN page AS p2 ON p2.page_id = cl2.cl_from AND p2.page_namespace = 14
  JOIN deepcat ON cl2.cl_to = deepcat.page_title
)
SELECT p3.page_title, cl3.cl_to
FROM page AS p3
JOIN categorylinks AS cl3 ON cl_from = p3.page_id
JOIN deepcat ON cl3.cl_to = deepcat.page_title
LEFT JOIN pagelinks ON pl_namespace = p3.page_namespace AND pl_title = p3.page_title
WHERE p3.page_namespace = 0
  AND pl_from IS NULL;
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...