Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Categories containing the word LGBT, but not LGBTQ
by
Cryptic
This query is marked as a draft
This query has been published
by
HouseBlaster
.
https://en.wikipedia.org/wiki/Special:Permalink/1242799529#All_categories_with_%22LGBT%22_in_their_title Differences from parent: * The check against 'LGBT' is case-insensitive * Omit categories in [[Category:All categories for discussion]]
Toggle Highlighting
SQL
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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...