Fork of
broken links to commons categories
by בורה בורה
This query is marked as a draft
This query has been published
by IKhitron.
SQL
AخA
use hewiki_p;
select page_title, substr(iwl_title, 10)
from iwlinks inner join page
on page_id = iwl_from
where
iwl_prefix='commons' and length(iwl_title)>0
and iwl_title like 'Category:%' and page_namespace =0
and not exists(select * from commonswiki_p.page cp
where cp.page_title=substr(iwl_title, 10)
and cp.page_namespace=14)
limit 1000;
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.