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
Guillaume (WMF)
.
See https://meta.wikimedia.org/wiki/State_of_the_Commons/2015
Toggle Highlighting
SQL
use commonswiki_p; SELECT count(image.img_name), image.img_media_type FROM image, page WHERE page.page_namespace = 6 AND page.page_title = image.img_name AND page_id IN ( SELECT DISTINCT cl_from FROM categorylinks WHERE categorylinks.cl_to LIKE 'CC-%' AND categorylinks.cl_to NOT LIKE '%aircraft%' ) GROUP BY image.img_media_type ORDER BY count(image.img_name) DESC;
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...