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) /* Maybe more performant version */ /*USE nlwiki_p; -- Replace with the desired Wikimedia database (e.g., enwiki_p for English Wikipedia) 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 WHERE p.page_namespace = 0 -- Only include content namespace AND r.rev_timestamp < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 5 YEAR), '%Y%m%d%H%i%s') AND EXISTS ( SELECT 1 FROM externallinks el WHERE el.el_from = p.page_id ) GROUP BY p.page_id LIMIT 100; -- Adjust limit as needed*/ USE nlwiki_p; -- Replace with the desired Wikimedia database (e.g., enwiki_p for English Wikipedia) 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 WHERE p.page_namespace = 0 -- Only include content namespace AND EXISTS ( SELECT 1 FROM externallinks el WHERE el.el_from = p.page_id AND el.el_index NOT LIKE '%archive.is%' AND el.el_index NOT LIKE '%archive.today%' AND el.elel_index NOT LIKE '%archive.org%' ) GROUP BY p.page_id HAVING last_edit < 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...