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
Aram
.
Toggle Highlighting
SQL
-- USE the appropriate database USE wikidatawiki_p; -- Find categories that are available in most languages but not in ckbwiki SELECT enwiki.ll_title AS category_title FROM ( SELECT ll_title FROM langlinks WHERE -- Exclude categories from ckbwiki ll_lang != 'ckb' AND -- Filter by namespace (Category) ll_title LIKE 'Category:%' AND -- Subquery to count languages where the category is available (SELECT COUNT(DISTINCT ll_lang) FROM langlinks AS sublanglinks WHERE sublanglinks.ll_title = langlinks.ll_title ) > 5 -- Adjust the threshold for the minimum number of languages as needed ) AS other_languages LEFT JOIN ( SELECT ll_title FROM langlinks WHERE ll_lang = 'en' -- English Wikipedia ) AS enwiki ON enwiki.ll_title = other_languages.ll_title WHERE enwiki.ll_title IS NULL 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...