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

SQL

x
 
USE wikidatawiki_p;
SELECT page_id, page_namespace, page_title, rd_from, rd_fragment, page_is_redirect
FROM (
    SELECT pl_from, rd_from, rd_fragment
    FROM `pagelinks`
    LEFT JOIN `redirect`
        ON ((rd_from = pl_from)
            AND rd_title = 'P248'
            AND (rd_interwiki = '' OR rd_interwiki IS NULL)
            AND rd_namespace = 120
        )
    WHERE pl_namespace = 120
      AND pl_title = 'P248'
    ORDER BY pl_from
) `temp_backlink_range`
JOIN `page`
    ON ((pl_from = page_id))
ORDER BY page_id
LIMIT 51
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...