Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Pppery
.
Toggle Highlighting
SQL
select concat('Category:',c.page_title) from page c join page m on m.page_namespace=0 and m.page_title= concat(UPPER(CONVERT(SUBSTRING(c.page_title FROM 27 FOR 1) USING LATIN1)), SUBSTRING(c.page_title from 28 for 1000)) where c.page_namespace=14 and c.page_title like "%Wikipedians\_who\_listen\_to\_%" and m.page_is_redirect=0 and not exists (select 1 from categorylinks where cl_from=c.page_id and (cl_to='Wikipedia_soft_redirected_categories' or cl_to like 'Categories_for_discussion_from%')) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%music%")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%Heavy\_metal\_genres%"))
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...