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

SQL

AخA
 
use ruwiki_p;
select * from page
where page_namespace = 0
and page_is_redirect
and exists
(select * from templatelinks
 where page_id = tl_from
 and not tl_title in ("R_with_possibilities", "Redirect_template", "Arguments", "No_globals", "Ambox", "Wikidata-redirect", "Arguments",
 "Category_handler", "Category_handler/blacklist", "Category_handler/config", "Category_handler/data", "Category_handler/shared", "Dates",
 "Message_box", "Message_box/configuration", "Namespace_detect/config", "Namespace_detect/data", "Yesno", "Replace", "Неверный_заголовок",
 "Wikidata-taxon-redirect", "Таксон/Цвет", "String", "Date_Converter", "Nobr", "Администраторам", "К_удалению", "Очищать_кэш", "Заголовок",
 "Просроченные_подведения_итогов", "Сортировка:_КУ", "Сортировка:_по_странам", "Сортировка:_по_типам", "R_from_acronym", "Заголовок_курсивом"
 , "Заголовок_со_строчной_буквы", "Arguments", "Title_transformations", "Lowercase", "Внешние_ссылки_нежелательны", "Rellink", "Title",
 "Ref-en", "Ref-info", "Ref-lang", "Tl", "Перевести", "Ref-de", "Wikidata", "Просроченные_подведения_итогов", "Сортировка:_по_типам/limit",
 "РМЗСОВД", "Sources", "Sources-utils", "Wikidata/config", "WikidataSelectors", "Falseredirect", "If", "P2", "Другое_значение"))
and not exists
(select * from templatelinks
 where page_id = tl_from
 and tl_title 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...