Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Commons files with {{PD-old}} and {{PD-1923}} templates
by
Jarekt
This query is marked as a draft
This query has been published
by
SDudley
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT concat("File:",page_title) as pagename /*SELECT count(*)*/ FROM page INNER JOIN templatelinks t1 ON t1.tl_from = page_id /*INNER JOIN templatelinks t2 ON t2.tl_from = page_id AND t2.tl_title = 'PD-old'*/ INNER JOIN categorylinks cl1 ON cl1.cl_from = page_id WHERE page_namespace = 6 and -- files only t1.tl_title = 'PD-1923' and -- files transcluding {{PD-1923}} cl1.cl_to = "PD_Old" -- files transcluding {{PD-old}} (and in [[category:PD Old]])
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...