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
Achim55
.
pages linking to redirects
Toggle Highlighting
SQL
(SELECT enp.page_namespace, enp.page_title, eniwl.iwl_title FROM enwiki_p.iwlinks eniwl INNER JOIN enwiki_p.page enp ON enp.page_id = eniwl.iwl_from WHERE eniwl.iwl_prefix ='commons' AND eniwl.iwl_title = 'Category:') UNION (SELECT enp.page_namespace, enp.page_title, eniwl.iwl_title FROM enwiki_p.iwlinks eniwl INNER JOIN enwiki_p.page enp ON enp.page_id = eniwl.iwl_from RIGHT JOIN commonswiki_p.page cop ON CONCAT('Category:',cop.page_title) = eniwl.iwl_title WHERE eniwl.iwl_prefix ='commons' AND eniwl.iwl_title LIKE 'Category:%' AND cop.page_namespace = 14 AND cop.page_is_redirect = 1) ORDER BY page_namespace, page_title;
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...