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
-- Query for enwiki_p (English Wikipedia) USE enwiki_p; -- Get the top 100 categories on enwiki that are not in ckbwiki SELECT enwiki.category FROM ( SELECT cl_to AS category, COUNT(*) AS count FROM categorylinks WHERE cl_to NOT IN ( SELECT page_title FROM page WHERE page_id IN ( SELECT cl_from FROM categorylinks WHERE cl_to = 'Hidden_categories' ) ) GROUP BY category ) AS enwiki LEFT JOIN ( -- Subquery for ckbwiki categories USE ckbwiki_p; SELECT cl_to AS category FROM categorylinks GROUP BY category ) AS ckbwiki ON enwiki.category = ckbwiki.category WHERE ckbwiki.category IS NULL 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...