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 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_to_domain_index NOT IN ('archive.is', 'archive.today', 'archive.org', 'toolforge.org') ) GROUP BY p.page_id HAVING last_edit < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 5 YEAR), '%Y%m%d%H%i%s') ORDER BY RAND() LIMIT 100; -- Adjust limit as needed*/ 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 el_from FROM externallinks el WHERE el.el_from = p.page_id AND el.el_to_domain_index NOT IN ('archive.is', 'archive.today', 'archive.org') AND el.el_to_domain_index NOT LIKE ('toolforge.org') ) AND p.page_title = 'Istočni_Mostar' GROUP BY p.page_id HAVING last_edit < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 5 YEAR), '%Y%m%d%H%i%s') ORDER BY RAND() LIMIT 100; -- Adjust limit as needed /*SELECT * FROM externallinks el WHERE el.el_from = 1361143 AND el.el_to_domain_index NOT LIKE ('toolforge.org')*/
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...