SQL
AخA
SELECT CONCAT('Category:', REPLACE(page_title, '_', ' '))
FROM page
LEFT JOIN categorylinks ON cl_from = page_id AND cl_to = 'All_categories_for_discussion'
WHERE page_namespace = 14 -- category
AND CONVERT(page_title USING utf8) LIKE '%LGBT%'
AND page_title NOT LIKE '%LGBTQ%'
AND cl_from IS NULL
ORDER BY page_title ASC;
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.