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

SQL

x
 
SELECT concat('# [[ویکیپدیا:',REPLACE(page_title,'_',' '),']]')
FROM page
WHERE page_is_redirect=0
AND page_namespace = 4
AND (
  page_title LIKE 'نظرخواهی_برای_حذف/%'
  OR page_title LIKE 'نظرخواهی_برای_حذف_متفرقه/%'
)
AND page_title NOT IN (
  SELECT tl_title
  FROM templatelinks
  WHERE tl_from = 37395
  AND tl_from_namespace = 4
  AND tl_namespace = 4
)
AND page_id IN (
  SELECT cl_from
  FROM categorylinks
  WHERE cl_to LIKE "بحثهای_نبح%"
);
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...