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
.
Articles less than 3000 bytes in categories which are great-grandchildren of Category:Articles. The category list is hardcoded, as I couldn't work out a way to do it efficiently otherwise.
Toggle Highlighting
SQL
USE enwiki_p; SELECT DISTINCT article.page_title FROM page AS article WHERE article.page_namespace = 0 AND article.page_is_redirect = 0 AND article.page_len < 3000 AND NOT EXISTS (SELECT 1 FROM categorylinks WHERE cl_from = article.page_id AND cl_to = 'All_disambiguation_pages' ) AND EXISTS (SELECT 1 FROM categorylinks AS cl1 JOIN page as catpage1 ON catpage1.page_id = cl1.cl_from WHERE cl1.cl_from = article.page_id AND EXISTS (SELECT 1 FROM categorylinks AS cl2 JOIN page as catpage2 ON catpage2.page_id = cl2.cl_from WHERE cl2.cl_from = catpage1.page_id AND EXISTS (SELECT 1 FROM categorylinks AS cl3 JOIN page as catpage3 ON catpage3.page_id = cl3.cl_from WHERE cl3.cl_from = catpage2.page_id AND EXISTS (SELECT 1 FROM categorylinks AS cl4 WHERE cl4.cl_from = 'Articles' ) ) ) ) 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...