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
Crazy1880
.
Toggle Highlighting
SQL
/* Make a list of files that are uncategorized, but are in use on a Wikidata item */ CONNECT commonswiki_p commonswiki.labsdb; SELECT CONCAT("* [[:File:", page_title, "]]") FROM page JOIN categorylinks ON page_id=cl_from AND cl_type='file' AND cl_to like 'All\_media\_needing\_categories\_as\_of\_2016' JOIN globalimagelinks ON page_title=gil_to AND gil_wiki='wikidatawiki' AND gil_page_namespace_id = 0 WHERE page_namespace=6 AND page_is_redirect=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...