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
Colin M
.
enwiki mainspace articles with values of page_random which are well-spaced from the next-smallest value. These are the articles that are most likely to be reached when hitting the "Random article" button.
Toggle Highlighting
SQL
SELECT page_id, page_title, page_random, page_random - (LAG(page_random) OVER (ORDER BY page_random)) AS gap FROM page WHERE page_namespace=0 AND page_is_redirect=0 AND -- page_random >= 0.5 AND page_random <= 0.51 AND -- limit to an arbitrary small subset of pages for query testing -- exclude dab pages NOT EXISTS (SELECT * FROM page_props WHERE page_id=pp_page AND pp_propname='disambiguation') ORDER BY gap DESC LIMIT 10000
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...