Fork of broken links to commons categories by בורה בורה
This query is marked as a draft This query has been published by IKhitron.

SQL

x
 
use hewiki_p;
select page_namespace, page_title, replace(iwl_title, '_', ' ') from page join iwlinks
on page_id = iwl_from 
where page_namespace = 0
and iwl_prefix='commons'
and iwl_title like 'Category:%'
and not exists
(select * from commonswiki_p.page 
 where page_title = substr(iwl_title, 10) 
 and page_namespace = 14)
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...