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
Mike.Khoroshun
.
Toggle Highlighting
SQL
SELECT ips.ips_item_id, ips.ips_site_page, ips.ips_row_id, COUNT(*) AS links, (SELECT COUNT(*) FROM wb_items_per_site ips_bis WHERE ips_bis.ips_site_id = "ukwiki" AND ips_bis.ips_item_id = ips.ips_item_id) AS ukwiki, (SELECT COUNT(*) FROM wb_items_per_site ips_bis WHERE ips_bis.ips_site_id = "enwiki" AND ips_bis.ips_item_id = ips.ips_item_id AND ips.ips_site_page NOT LIKE 'Category:%' AND ips.ips_site_page NOT LIKE 'Template:%' AND ips.ips_site_page NOT LIKE 'Wikipedia:%') AS enwiki FROM wb_items_per_site ips GROUP BY ips.ips_item_id HAVING ukwiki < 1 AND enwiki > 0 ORDER BY links DESC LIMIT 10000;
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...