SQL
x
use ruwiki_p;
select replace(page_title, '_', ' ') as статья, replace(cl_to, '_', ' ') as метакатегория
from page p join categorylinks
on page_id = cl_from
where page_namespace = 0
and exists
(select * from page
where page_namespace = 14
and page_title = cl_to
and exists
(select * from templatelinks
where tl_from = page_id
and tl_title = 'Метакатегория'))
order by статья
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.