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

SQL

AخA
 
SELECT COUNT(*),
       CONCAT('Draft:', pl_title) AS title,
       NOT EXISTS (SELECT 1
                   FROM page
                   WHERE page_namespace = 118
                     AND page_title = pl_title)
         AS 'Draft is redlink'
FROM pagelinks
JOIN page ON page_id = pl_from
WHERE pl_from_namespace = 0
  AND pl_namespace = 118
  AND (NOT EXISTS (SELECT 1
                   FROM templatelinks
                   WHERE tl_from = pl_from
                     AND tl_namespace = 10
                     AND tl_title = 'R_with_possibilities')
       OR pl_title != page_title)
GROUP BY pl_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...