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
Mr. Stradivarius
.
Answering the request at https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=720191223#Fixing_some_erroneous_categories
Toggle Highlighting
SQL
USE enwiki_p; SELECT DISTINCT article.page_title FROM page AS article JOIN categorylinks AS articlecat ON articlecat.cl_from = article.page_id WHERE article.page_namespace = 0 AND articlecat.cl_to LIKE '%Kansas' AND NOT EXISTS (SELECT 1 FROM page AS catpage WHERE catpage.page_title = articlecat.cl_to AND catpage.page_namespace = 14 ) ORDER BY article.page_title;
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...