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

SQL

x
 
select concat('Talk:', page_title) from page where page_namespace = 1 and page_is_redirect = 0
and page_title in (select page_title from page where page_namespace = 0 and page_is_redirect = 1)
and page_id in (
  select tl_from from templatelinks where tl_target_id in (
    select lt_id from linktarget 
    where lt_title in ('BLP', 'BLP_others') and lt_namespace = 10
  )
)
and page_id in (
  select tl_from from templatelinks where tl_target_id in (
    select lt_id from linktarget 
    where lt_title in ('Talk_page_of_redirect') and lt_namespace = 10
  )
)
/*
select count(*) from page where page_namespace = 1 and page_is_redirect = 0
and page_title in (select page_title from page where page_namespace = 0 and page_is_redirect = 1)
and page_id not in (
  select tl_from from templatelinks where tl_target_id in (
    select lt_id from linktarget 
    where lt_title in ('Talk_page_of_redirect') and lt_namespace = 10
  )
)
and page_id in (
  select tl_from from templatelinks where tl_target_id in (
    select lt_id from linktarget 
    where lt_title in ('Old_RfD', 'Old_XfD_multi', 'Old_MfD') and lt_namespace = 10 
    or lt_title = 'WikiProject_banner' and lt_namespace = 828
  )
)
*/
/*
and page_id in (
  select tl_from from templatelinks where tl_target_id in (
    select lt_id from linktarget 
    where lt_title in ('Archive') and lt_namespace = 10
  )
)
*/
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...