SQL
x
use wikidatawiki_p;
select ips_item_id, nn, ips_site_page
from (
select ips_item_id, count(*) as nn
from wb_items_per_site
where ips_site_id in ('enwiki', 'dewiki', 'frwiki', 'eswiki', 'ruwiki', 'itwiki', 'jawiki', 'nlwiki',
'ptwiki', 'plwiki', 'zhwiki', 'svwiki', 'shwiki', 'arwiki', 'fawiki', 'hewiki',
'ukwiki', 'kowiki', 'huwiki', 'trwiki', 'cawiki', 'fiwiki', 'nowiki', 'cswiki',
'simplewiki', 'idwiki', 'srwiki', 'rowiki', 'dawiki', 'bgwiki', 'thwiki', 'skwiki',
'eowiki', 'elwiki', 'euwiki', 'ltwiki', 'hrwiki', 'slwiki', 'etwiki', 'hywiki', 'mswiki',
'glwiki', 'azwiki', 'kawiki', 'hiwiki', 'lvwiki', 'kkwiki', 'bewiki', 'mlwiki', 'bnwiki',
'tawiki', 'sqwiki' )
group by ips_item_id
having nn > 20) as i left join (
select ips_item_id as ii, ips_site_page
from wb_items_per_site
where ips_site_id = 'cswiki'
) as k
on ips_item_id = ii
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.