Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Edgars2007
.
use wikidatawiki_p; SELECT ips_item_id, COUNT(ips_item_id) FROM wb_items_per_site www WHERE ips_item_id between 0 and 100000 and ips_site_id RLIKE 'wiki$' AND (NOT ips_site_id='wikidatawiki' AND NOT ips_site_id='commonswiki') GROUP BY ips_item_id HAVING COUNT(ips_item_id) > 47 AND ips_item_id NOT in (SELECT inn.ips_item_id FROM wb_items_per_site inn WHERE inn.ips_site_id='lvwiki')
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT ips_item_id, COUNT(ips_item_id) FROM wb_items_per_site www WHERE ips_item_id between 0 and 50000 and ips_site_id LIKE '%wiki' AND NOT ips_site_id='wikidatawiki' AND NOT ips_site_id='commonswiki' GROUP BY ips_item_id HAVING COUNT(ips_item_id) > 47 AND NOT exists (SELECT inn.ips_item_id FROM wb_items_per_site inn WHERE inn.ips_site_id='lvwiki' and inn.ips_item_id = www.ips_item_id) ORDER BY COUNT(ips_item_id) DESC;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...