SQL
AخA
USE frwiki_p;
SELECT p.page_id, page_title, rd_namespace FROM page p
JOIN redirect r ON r.rd_from = p.page_id
WHERE p.page_namespace = 0
AND r.rd_namespace NOT IN (0, #Article
#14, # Category
#10, # Template
#4, # Wikipedia
#5, # Wikipedia talk
#12, # Help
#100, # Portal
104) # Reference
AND page_title not like 'P:%'
AND page_title not like 'DP:%'
AND page_title not like 'CAT:%'
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.