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, and count the number of languages SELECT enwiki.ll_title AS category_title, COUNT(DISTINCT other_languages.ll_lang) AS language_count FROM ( SELECT ll_title FROM langlinks WHERE -- Exclude categories from ckbwiki ll_lang != 'ckb' AND -- Filter by namespace (Category) ll_title LIKE 'Category:%' ) AS other_languages LEFT JOIN langlinks AS enwiki ON enwiki.ll_title = other_languages.ll_title AND enwiki.ll_lang = 'en' WHERE enwiki.ll_title IS NOT NULL GROUP BY enwiki.ll_title HAVING language_count > 5 -- Adjust the threshold for the minimum number of languages as needed 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...