Fork of Missing hatnote templates (cswiki) by Matěj Suchánek
This query is marked as a draft This query has been published by Geraki.

SQL

AخA
 
USE elwiki_p;
SELECT page_namespace, page_title, page_is_redirect, page_latest FROM page AS p1
WHERE page_namespace = 0 AND page_is_redirect = 0 AND EXISTS (
  SELECT 1 FROM page AS p2
  WHERE p2.page_namespace = 0 AND p2.page_title = CONCAT(p1.page_title, '_(αποσαφήνιση)') AND p2.page_is_redirect = 0
) AND NOT EXISTS (
  SELECT 1 FROM pagelinks WHERE pl_from = page_id AND pl_namespace = 0 AND pl_title = CONCAT(p1.page_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...