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 wikidatawiki_p; WITH CategoryCounts AS ( SELECT cl_to AS category_title, COUNT(DISTINCT cl_lang) AS language_count FROM categorylinks WHERE cl_to NOT LIKE 'Hidden_categories%' AND cl_to NOT IN ( SELECT ll_title FROM langlinks WHERE ll_lang = 'en' AND ll_title = 'Hidden_categories' ) GROUP BY cl_to ), CategoryExclusion AS ( SELECT ll_title AS category_title FROM langlinks WHERE ll_lang = 'en' AND ll_title = 'Hidden_categories' ), CategoryCKB AS ( SELECT DISTINCT cl_to AS category_title FROM categorylinks WHERE cl_lang = 'ckb' ), TopCategories AS ( SELECT cc.category_title FROM CategoryCounts cc LEFT JOIN CategoryExclusion ce ON cc.category_title = ce.category_title LEFT JOIN CategoryCKB ckb ON cc.category_title = ckb.category_title WHERE ce.category_title IS NULL AND ckb.category_title IS NULL ORDER BY cc.language_count DESC LIMIT 100 ) SELECT tc.category_title AS category FROM TopCategories tc;
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...