This query is marked as a draft This query has been published by Miriam (WMF).

SQL

x
 
SELECT  enwiki_p.page.page_title, enwiki_p.page.page_id,wikidatawiki_p.wb_items_per_site.ips_item_id,wikidatawiki_p.wb_items_per_site.ips_site_page
FROM page
INNER JOIN categorylinks  ON   cl_from = page.page_id
AND   categorylinks.cl_to = "Gender_equality"
INNER JOIN wikidatawiki_p.wb_items_per_site
ON wikidatawiki_p.wb_items_per_site.ips_item_id IN ( SELECT ips_item_id from wikidatawiki_p.wb_items_per_site WHERE ips_site_page=REPLACE(page.page_title,'_',' ')
                                                    AND wikidatawiki_p.wb_items_per_site.ips_site_id="enwiki")
AND  wikidatawiki_p.wb_items_per_site.ips_site_id IN ("eswiki","enwiki")                               
WHERE page.page_namespace = 0
#FROM wb_items_per_site WHERE ips_site_id="enwiki" AND ips_item_id IN (SELECT ips_item_id FROM wb_items_per_site WHERE ips_site_page LIKE ("'$title'") AND ips_site_id="'$lan'")'
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...