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
Elph
.
Toggle Highlighting
SQL
USE arwiki_p; WITH orphaned_articles AS ( SELECT p.page_id, p.page_title FROM page p LEFT JOIN pagelinks pl ON p.page_id = pl.pl_to WHERE pl.pl_from IS NULL AND p.page_namespace = 0 AND p.page_is_redirect = 0 AND p.page_id NOT IN (SELECT pl.pl_to FROM pagelinks pl JOIN revision r ON pl.pl_from = r.rev_page WHERE r.rev_timestamp < '20240713000000') GROUP BY p.page_id ), linked_articles AS ( SELECT p.page_id, p.page_title FROM page p JOIN pagelinks pl ON p.page_id = pl.pl_to WHERE pl.pl_from IN (SELECT rev_page FROM revision WHERE rev_timestamp BETWEEN '20240713000000' AND '20240713235959') AND p.page_namespace = 0 AND p.page_is_redirect = 0 GROUP BY p.page_id ) SELECT la.page_title FROM linked_articles la JOIN orphaned_articles oa ON la.page_id = oa.page_id ORDER BY la.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...