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
C1K98V
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT /* SLOW_OK */ concat("File:", page_title) FROM page WHERE page_namespace = 6 -- files only AND page_is_redirect = 0 -- no redirects AND page_title NOT LIKE "%/%" -- no sub-pages AND NOT EXISTS ( SELECT 1 FROM templatelinks WHERE tl_from = page_id AND tl_title IN ("License_template_tag", "Deletion_template_tag") -- files without a license or deletion tag ) AND NOT EXISTS ( -- files not in "No license" categories SELECT 1 FROM categorylinks WHERE cl_from = page_id AND cl_to IN ("Media_without_a_license:_needs_history_check", "New_uploads_without_a_license") );
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...