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

SQL

x
 
# select pages and link creators
SELECT
page_title AS "Page Name",
(SELECT page_title FROM page WHERE page_id = pl_from) AS "Nav Template"
FROM page
JOIN pagelinks
ON pl_title = page_title
# with links incoming from templatespace
WHERE pl_from_namespace = 10
# and is in article space
AND page_namespace = 0
AND pl_from IN (SELECT tl_from FROM templatelinks WHERE tl_title = "Navbox" AND tl_from = pl_from)
AND (SELECT page_title FROM page WHERE page_id = pl_from) NOT IN (SELECT tl_title FROM templatelinks WHERE tl_from = page_id)
Limit 200;
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...