Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Articles with "orphan" tag, that has 3 or more incoming link (arwiki)
by
FShbib
This query is marked as a draft
This query has been published
by
Cheetah90
.
query the common inlinks between two articles in English
Toggle Highlighting
SQL
USE enwiki_p; SELECT * FROM (SELECT page.page_title AS page_title, page.page_namespace AS page_namespace FROM (SELECT trump_inlinks.pl_from AS pl_from FROM (SELECT pl_from FROM pagelinks WHERE pl_namespace = 0 AND pl_title = 'Vladimir_Putin') AS trump_inlinks, (SELECT pl_from FROM pagelinks WHERE pl_namespace = 0 AND pl_title = 'Foreign_policy_of_Donald_Trump') AS putin_inlinks WHERE trump_inlinks.pl_from = putin_inlinks.pl_from) AS trump_putin_inlinks INNER JOIN page ON trump_putin_inlinks.pl_from = page.page_id) AS foreign_putin_inlinks_title WHERE NOT EXISTS (SELECT 1 FROM (SELECT page.page_title AS page_title, page.page_namespace AS page_namespace FROM (SELECT trump_inlinks.pl_from AS pl_from FROM (SELECT pl_from FROM pagelinks WHERE pl_namespace = 0 AND pl_title = 'Donald_Trump') AS trump_inlinks, (SELECT pl_from FROM pagelinks WHERE pl_namespace = 0 AND pl_title = 'Vladimir_Putin') AS putin_inlinks WHERE trump_inlinks.pl_from = putin_inlinks.pl_from) AS trump_putin_inlinks INNER JOIN page ON trump_putin_inlinks.pl_from = page.page_id) AS trump_putin_inlinks_title WHERE foreign_putin_inlinks_title.page_title = trump_putin_inlinks_title.page_title AND foreign_putin_inlinks_title.page_namespace = trump_putin_inlinks_title.page_namespace);
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...