SQL
AخA
select page_id, page_namespace, page_title
from page
where exists (
select 1 from templatelinks
left join linktarget on lt_id = tl_target_id
where lt_namespace = 10 and lt_title = 'S-rail'
and tl_from = page_id
)
and not exists (
select 1 from templatelinks
left join linktarget on lt_id = tl_target_id
where lt_namespace = 10 and lt_title = 'S-rail-national'
and tl_from = page_id
)
order by page_namespace, 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.