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

SQL

AخA
 
# 7216752, 10069356, 10099658, 21855
set @page = 10099658;
#set @page = 10069356;
select pl_title from pagelinks
where pl_from = @page
and not pl_namespace
and not pl_title in
(select page_title from page
 where page_id in
 (select tl_from from templatelinks
  where tl_target_id = 21855)
 and not page_namespace)
and not pl_title in ('Аэропорт_Шереметьево_(станция_аэроэкспресса)', 'Южная_Битца_(платформа)');
select page_title from page
where page_id in
(select tl_from from templatelinks
 where tl_target_id = 21855)
and not page_namespace
and not page_title in
(select pl_title from pagelinks
 where pl_from = @page
 and not pl_namespace)
and not page_title in ('Московский_метрополитен', 'Список_станций_Московского_метрополитена',
                       'Первомайская_(закрытая_станция_метро)', 'Калужская_(закрытая_станция_метро)', 'Каховская_линия',
                       'Калининско-Солнцевская_линия', 'Троице-Лыково_(техническая_платформа)',
                       'Хмельницкая_(станция_метро)')
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...