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
Smile4ever
.
Toggle Highlighting
SQL
USE nlwiki_p; -- Replace with the desired Wikimedia database (e.g., enwiki_p for English Wikipedia) -- Select pages that haven't been updated in the last 5 years and have at least one external link SELECT p.page_id, p.page_title, MAX(r.rev_timestamp) AS last_edit FROM page p JOIN revision r ON r.rev_page = p.page_id JOIN externallinks el ON el.el_from = p.page_id WHERE p.page_namespace = 0 -- Only include content namespace (adjust as needed) GROUP BY p.page_id HAVING MAX(r.rev_timestamp) < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 5 YEAR), '%Y%m%d%H%i%s') LIMIT 100; -- Adjust limit as needed
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...