SQL
x
use hewiki_p;
select * from templatelinks
where tl_from_namespace = 0
and tl_namespace = 0
and not tl_namespace = 10
and not exists
(select * from page
where page_id = tl_from
and page_title = tl_title)
and not tl_from in (1299321, 975310)
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.