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
FShbib
.
Toggle Highlighting
SQL
USE arwiki_p; SELECT /* SLOW_OK */ concat("ملف:",page_title) , page_id FROM page WHERE page_namespace = 6 -- files only AND page_is_redirect = 0 -- no redirects AND NOT page_title LIKE "%/%" -- no sub-pages AND NOT exists ( SELECT * FROM templatelinks WHERE tl_from=page_id AND tl_namespace IN (10, 2) AND tl_title IN ("تعليل_استعمال_غير_حر") -- find files that do not have a license and do not wait for deletion limit 1 ) AND NOT exists ( -- find files that are not in "No license" categories SELECT * FROM categorylinks WHERE cl_from=page_id AND cl_to IN ("Media_without_a_license:_needs_history_check", "New_uploads_without_a_license") limit 1 )
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...