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
Akaibu
.
Toggle Highlighting
SQL
SELECT SQL_SMALL_RESULT page_len / IFNULL(COUNT(pl.pl_from), 1) AS length_to_link_ratio, COUNT(rev_id) AS editcount, page_title FROM revision JOIN page ON page.page_id = revision.rev_page LEFT JOIN pagelinks pl ON pl.pl_from = page.page_id AND pl.pl_namespace = 0, # This inner query returns the 500 pages with the earliest timestamps on their latest revisions (SELECT rev_timestamp AS lastedit, page.page_id, page.page_title, page.page_len FROM page JOIN revision ON page.page_id = revision.rev_page WHERE page.page_id IN # This query returns the list of regular articles created earlier than page_id X (SELECT page.page_id FROM page WHERE page_namespace = 0 AND page_is_redirect = 0 AND NOT EXISTS (SELECT 1 FROM page_props WHERE pp_page=page.page_id AND pp_propname = 'disambiguation') AND page_id < 5000000 # Big heuristic cheat! Ignore articles created after Dec 2008 ) AND revision.rev_id = page.page_latest ORDER BY lastedit ASC LIMIT 500 ) AS InnerQuery WHERE revision.rev_page = page.page_id GROUP BY page.page_id ORDER BY length_to_link_ratio 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...