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
Cryptic
.
Non-redirect mainspace pages in the category tree rooted at [[:Category:Food and drink]] by order of the timestamp of their latest edit, to a maximum depth of 3 subcats (for example, [[:Category:Food and drink]] > [[:Category:Cuisine]] > [[:Category:Confectionery]] > [[:Category:Ice cream]] > [[Ice Milk]]). For [[WP:RAQ#Dusty articles within all subcategories of a parent category]] circa 17 November 2024.
Toggle Highlighting
SQL
SET @basecat = 'Food and drink'; SET max_recursive_iterations = 3; SET @basecat = REPLACE(@basecat, ' ', '_'); WITH RECURSIVE deepcat (subcat) AS ( SELECT @basecat UNION DISTINCT SELECT page_title FROM categorylinks JOIN page ON page_id = cl_from JOIN deepcat ON cl_to = subcat WHERE page_namespace = 14 ) SELECT DISTINCT REPLACE(page_title, '_', ' ') AS title, CAST(rev_timestamp AS DATETIME) AS 'last edit timestamp' FROM page JOIN categorylinks ON cl_from = page_id JOIN deepcat ON cl_to = subcat JOIN revision ON rev_id = page_latest LEFT JOIN ns ON ns_n = page_namespace WHERE page_namespace = 0 AND page_is_redirect = 0 ORDER BY rev_timestamp 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...