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
Matma Rex
.
https://commons.wikimedia.org/wiki/Commons:Administrators'_noticeboard?oldid=199115948#AbuseFilter_for_cross-wiki_uploads
Toggle Highlighting
SQL
use commonswiki_p; select floor( least(metadata_length, 2000)/50 ) * 50 as metadata_length, sum(alive) as alive, count(*) - sum(alive) as dead from ( select (img_name is not null) as alive, length(coalesce(img_metadata, fa_metadata)) as metadata_length from logging join change_tag on log_id=ct_log_id left join image on img_name=log_title left join filearchive on fa_name=log_title where log_type='upload' and log_action='upload' and ct_tag='cross-wiki-upload' and (img_name is not null or fa_name is not null) and (img_major_mime='image' or fa_major_mime='image') ) t group by floor( least(metadata_length, 2000)/50 );
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...