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
Matěj Suchánek
.
Toggle Highlighting
SQL
USE cswiki_p; SELECT page_title AS page, CONCAT('https://www.wikidata.org/wiki/Special:ItemByTitle/cswiki/', page_title) AS URL FROM (SELECT pp_page FROM page_props WHERE pp_propname = 'wikibase_item') AS props JOIN (SELECT * FROM page WHERE page_is_redirect = 1) AS page ON page_id = pp_page; SELECT * FROM page WHERE page_is_redirect = 1 AND page_id IN (SELECT pp_page FROM page_props WHERE pp_propname = 'wikibase_item'); /* SELECT page_title AS Pagename, CONCAT("Q",ips_site_page) AS Item FROM (SELECT * FROM cswiki_p.page WHERE page_is_redirect = 1) AS redirects JOIN (SELECT * FROM wikidatawiki_p.wb_items_per_site WHERE ips_site_id = "cswiki") AS items ON ips_site_page = 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...