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
Bri
.
Toggle Highlighting
SQL
SET @ARTICLE_SPACE = 0; SET @START_PAGEID=13692155; # 'Philosophy' # this finds articles N links away from START select p1.page_title as 'page_1', p1.page_id as 'p1_pageid', p2.page_title as 'page_2', p2.page_id as 'p2_pageid' from page as p1 join page as p2 on p2.page_title in (select pl_title from pagelinks where pl_namespace=@ARTICLE_SPACE and pl_from=p1.page_id) where p1.page_title in (select pl_title from pagelinks where pl_namespace=@ARTICLE_SPACE and pl_from=@START_PAGEID) and @START_PAGEID != p1.page_id and @START_PAGEID != p2.page_id and p1.page_id != p2.page_id and p1.page_random < 0.001 and p2.page_random < 0.001 limit 1;
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...