Fork of Self-links by Cryptic
This query is marked as a draft This query has been published by Cryptic.

SQL

x
 
SELECT p1.page_namespace, p1.page_title
FROM page p1
JOIN pagelinks pl1 ON pl1.pl_from = p1.page_id
WHERE pl1.pl_namespace = p1.page_namespace
  AND pl1.pl_title = p1.page_title
  AND NOT EXISTS (SELECT 1
                  FROM templatelinks
                  JOIN page p2 ON p2.page_namespace = tl_namespace AND p2.page_title = tl_title
                  JOIN pagelinks pl2 ON pl2.pl_from = p2.page_id
                  WHERE pl2.pl_namespace = p1.page_namespace
                    AND pl2.pl_title = p1.page_title)
LIMIT 100;
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...