SQL
AخA
USE wikidatawiki_p;
USE enwiki_p;
SELECT ta.page_id, ta.page_title, CONCAT("&", CONCAT_WS("&", tc.ips_site_id), "&")
FROM (SELECT * FROM enwiki_p.page) AS ta
JOIN (SELECT * FROM enwiki_p.page_props) AS tb ON ta.page_id = tb.pp_page
JOIN (SELECT * FROM wikidatawiki_p.wb_items_per_site) AS tc ON ta.page_title = tc.ips_site_page
#WHERE NOT CONTAINS(CONCAT("&", CONCAT_WS("&", tc.ips_site_id), "&"), "&zhwiki&")
GROUP BY ta.page_title
LIMIT 10
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.