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

SQL

x
 
use hewikisource_p;
SELECT
  page_title, pl_title
FROM page
JOIN pagelinks
ON pl_from = page_id
JOIN categorylinks
ON cl_from = page_id
WHERE cl_to = "בוט_חוקים"
AND pl_namespace = 0
AND (NOT EXISTS(
 SELECT
   1
 FROM page
 WHERE page_title = pl_title
 AND (page_namespace = 0 OR page_namespace = 116)))
AND page_namespace = 0
order by pl_title
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...