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
Abbe98
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT c.cl_to AS category, COUNT(DISTINCT page_id) AS total FROM page INNER JOIN categorylinks AS c ON page_id=c.cl_from AND c.cl_to NOT IN ('Images_from_the_Swedish_National_Heritage_Board') INNER JOIN categorylinks AS cc on page_id=cc.cl_from AND cc.cl_to IN ('Images_from_the_Swedish_National_Heritage_Board') GROUP BY c.cl_to HAVING total>1 ORDER BY COUNT(page_id) 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...