SQL
x
use hewiki_p;
select concat('# [[', page_title, ']]') as article from page
where page_namespace = 0
and exists
(select * from templatelinks
where tl_from = page_id
and tl_title = "הערה")
and not exists
(select * from templatelinks
where tl_from = page_id
and tl_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.