SQL
AخA
USE bnwiki_p;
SELECT "[["page_title"]]"/*, pp_value*/
FROM (SELECT * FROM page WHERE page_is_redirect = 1) AS page
JOIN (SELECT * FROM page_props WHERE pp_propname = 'wikibase_item') AS props
ON pp_page = page_id
WHERE page_namespace = 0
ORDER BY page_title, pp_value;
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.