SQL
x
USE itwiki_p;
SELECT DISTINCT
it_page.page_title itwiki_title,
en_page.page_title enwiki_title
FROM
enwiki_p.page en_page
INNER JOIN wikidatawiki_p.wb_items_per_site wdata1
ON wdata1.ips_site_id = 'enwiki'
AND NOT wdata1.ips_site_id = 'itwiki'
AND wdata1.ips_site_page = REPLACE(en_page.page_title, '_', ' ')
INNER JOIN page it_page
ON it_page.page_namespace = 0
AND it_page.page_is_redirect = 0
INNER JOIN wikidatawiki_p.wb_items_per_site wdata2
ON wdata2.ips_site_id = 'itwiki'
AND NOT wdata2.ips_site_id = 'enwiki'
AND wdata2.ips_site_page = REPLACE(it_page.page_title, '_', ' ')
WHERE it_page.page_title = en_page.page_title
AND it_page.page_namespace = 0
AND it_page.page_is_redirect = 0
AND it_page.page_id NOT IN
(SELECT cl_from
FROM categorylinks, pagelinks
WHERE cl_to = pl_title
AND pl_namespace = 14
AND pl_from = 4195411)
AND it_page.page_id NOT IN
(SELECT ll_from
FROM langlinks)
LIMIT 100;
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.