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

SQL

x
 
use hewiki_p;
select * from page
where page_namespace = 14
and exists
(select * from categorylinks
 where page_title = cl_to
 and exists
 (select * from page
  where cl_from = page_id
  and page_namespace = 0))
and exists
(select * from categorylinks
 where page_title = cl_to
 and exists
 (select * from page
  where cl_from = page_id
  and not page_namespace in (0, 10, 14, 100)))
order by 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.

Checking query status...