This query is marked as a draft This query has been published by Ghuron.

SQL

AخA
 
USE wikidatawiki_p;
SELECT ips_item_id, SUM(CASE WHEN ips_site_id = 'ruwiki' THEN 1 ELSE 0 END) AS already, COUNT(*) AS CNT
FROM wb_items_per_site
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.

Checking query status...