SQL
AخA
USE dewiki_p;
SELECT CONCAT('[[', page_title, ']]'), page_is_redirect
FROM page, categorylinks
WHERE page_namespace = 0
AND page_id = cl_from
AND cl_to IN ('Mann', 'Frau')
AND NOT EXISTS (SELECT 1
FROM templatelinks
WHERE tl_from = page_id
AND tl_title = 'Personendaten'
);
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.