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
Bjh21
.
This counts the number of distinct files mentioned in the GlobalUsage table. Only files that actually exist on Commons are counted. Uses on Commons itself, on user pages, and on talk pages are excluded.
Toggle Highlighting
SQL
select count(distinct gil_to) from globalimagelinks, image where gil_to = img_name and gil_wiki <> 'commonswiki' and gil_page_namespace_id <> 2 and gil_page_namespace_id & 1 = 0;
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...