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; -- Specify the database name SELECT en_cl.cl_to AS Category, COUNT(DISTINCT ll.ll_lang) AS LanguageCount FROM categorylinks en_cl JOIN page en_p ON en_cl.cl_from = en_p.page_id LEFT JOIN ( SELECT ll_from, COUNT(*) AS ckb_count FROM langlinks WHERE ll_lang = 'ckb' GROUP BY ll_from ) ckb_counts ON en_p.page_id = ckb_counts.ll_from LEFT JOIN langlinks ll ON en_p.page_id = ll.ll_from WHERE en_p.page_namespace = 14 -- Limit to category namespace AND en_cl.cl_to NOT LIKE 'Hidden_categories' AND en_cl.cl_to NOT LIKE '%%_stub' -- Exclude stub categories AND (ckb_counts.ckb_count IS NULL OR ckb_counts.ckb_count = 0) GROUP BY en_cl.cl_to ORDER BY LanguageCount DESC 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...