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_TITLE = 'Philosophy'; SET @START_PAGEID=13692155; # this finds articles N links away from START_TITLE select p1.page_title as 'page_1', p2.page_title as 'page_2' 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 limit 250;
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...