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 enwiki_p; -- Find the categories available on most languages/wikipedias WITH MostAvailableCategories AS ( SELECT ll_title AS category_title, COUNT(DISTINCT ll_lang) AS num_languages FROM langlinks WHERE ll_title LIKE 'Category:%' -- Only consider category pages GROUP BY ll_title HAVING num_languages >= (SELECT COUNT(DISTINCT ll_lang) FROM langlinks WHERE ll_lang = 'ckbwiki') ORDER BY num_languages DESC LIMIT 100 ) -- Find categories that are not available in ckbwiki SELECT mac.category_title FROM MostAvailableCategories mac LEFT JOIN langlinks ckb ON mac.category_title = ckb.ll_title AND ckb.ll_lang = 'ckbwiki' WHERE ckb.ll_title IS NULL;
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...