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
CptViraj
.
Toggle Highlighting
SQL
SELECT p1.page_namespace, CASE WHEN p1.page_namespace = 6 THEN CONCAT('https://commons.wikimedia.org/wiki/File:', p1.page_title) ELSE CONCAT('https://commons.wikimedia.org/wiki/', p1.page_title) END AS page_title FROM redirect AS rd JOIN page p1 ON rd.rd_from = p1.page_id LEFT JOIN page AS p2 ON rd.rd_namespace = p2.page_namespace AND rd.rd_title = p2.page_title WHERE rd.rd_namespace >= 6 AND p2.page_namespace IS NULL ORDER BY p1.page_namespace ASC;
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...