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 22 FOR 1) USING LATIN1)), SUBSTRING(c.page_title from 23 for 1000)) where c.page_namespace=14 and c.page_title like "%Wikipedians\_who\_read\_%" 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 "%uthor%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%novels%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%riter%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%omic%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%agazine%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%book%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat")) and not exists (select 1 from categorylinks where cl_from=m.page_id and (cl_to like "%ewspaper%") and not exists (select 1 from page hc join page_props on pp_page=hc.page_id where hc.page_namespace=14 and hc.page_title = cl_to and pp_propname="hiddencat"))
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...