SQL
AخA
USE svwiki_p;
SELECT /**/page_namespace as ns, page_title#CONCAT("Template:",page_title)#, pp_value#, concat("*https://ro.wikipedia.org/w/index.php?title=",page_title,"&action=history") as link
FROM (SELECT * FROM page WHERE page_is_redirect = 1 /*and page_namespace = 10*/) AS page
JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props
ON pp_page = page_id
ORDER BY 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.
All SQL code is licensed under CC0 License.
Query status: complete
Executed on Sun, 18 Jun 2017 11:41:33 UTC.