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

SQL

AخA
 
SELECT page_title AS pagename
    ,pl_title AS link
FROM pagelinks
INNER JOIN page ON pl_from = page_id
WHERE pl_from_namespace = 0
    AND page_is_redirect = 0
    AND pl_title IN (
        SELECT page_title
        FROM categorylinks
        INNER JOIN page ON page_id = cl_from
        WHERE cl_to = "Disambiguation_pages"
            AND cl_from = page_id
        )
    AND page_id NOT IN (
        SELECT tl_from
        FROM templatelinks
        WHERE tl_title = "Dn"
            AND tl_from = page_id
        );
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...