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 cl_to AS category_title FROM categorylinks AS c WHERE -- Filter by namespace (Category) c.cl_to LIKE 'Category:%' AND -- Exclude categories in ckbwiki NOT EXISTS ( SELECT 1 FROM categorylinks AS c2 WHERE c2.cl_to = c.cl_to AND c2.cl_from = (SELECT page_id FROM page WHERE page_title = 'ckbwiki' AND page_namespace = 14) ) GROUP BY c.cl_to HAVING COUNT(DISTINCT c.cl_lang) > 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...