Fork of
Main space page links to user space
by Uhai
This query is marked as a draft
This query has been published
by Uhai.
SQL
AخA
SELECT p.page_title, pl.pl_namespace, pl.pl_title
FROM page p
INNER JOIN pagelinks pl ON p.page_id = pl.pl_from AND pl.pl_namespace = 2
WHERE p.page_namespace = 0
AND pl.pl_title != 'Citation_bot'
AND p.page_id NOT IN (SELECT tl.tl_from FROM templatelinks tl WHERE tl.tl_target_id IN (236264, 17233, 99384, 2139, 13870, 881, 658, 8718, 8187, 2308))
AND p.page_id NOT IN (SELECT cl.cl_from FROM categorylinks cl WHERE cl.cl_to = 'Candidates_for_speedy_deletion')
AND p.page_is_redirect = 0
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.