Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Number of local vs. Commons images displayed on enwiki
by
Tgr (WMF)
This query is marked as a draft
This query has been published
by
Tgr (WMF)
.
Counts each image once.
Toggle Highlighting
SQL
USE enwiki_p; SELECT COUNT(DISTINCT il_to) AS local_images FROM imagelinks WHERE il_from_namespace = 0; USE commonswiki_p; SELECT COUNT(DISTINCT gil_to) AS commons_images FROM globalimagelinks WHERE gil_wiki = 'enwiki' AND gil_page_namespace = 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...