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
Cryptic
.
The first query is the total number of pages in the File: namespace at Commons. It's an overcount for "total number of files", since it includes redirects and other file description pages without associated files. (It also includes non-image media.) The value given for {{NUMBEROFFILES}}, for reference, was 98,163,273 when this query was first run. The second query is the number of different filenames of Commons files currently in use on at least one page at enwiki. I'm uncertain whether it counts file redirects and the files they redirect to separately. For [[w:en:WP:ANI#Phallic Vandalism Network]] circa 7 October 2023.
Toggle Highlighting
SQL
SELECT COUNT(*) AS 'total files' FROM page WHERE page_namespace = 6; SELECT COUNT(DISTINCT gil_to) AS '# in use at enwiki' FROM globalimagelinks WHERE gil_wiki = 'enwiki';
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...