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
SibeliusHicks
.
Toggle Highlighting
SQL
SELECT t1.el_id AS 'Link ID', t1.el_to AS 'External URL', t2.page_id AS 'Page ID', REPLACE(t2.page_title, '_', ' ') AS 'Page title', CONCAT('https://en.wikipedia.org/wiki/',t2.page_title) AS 'Page link', t2.page_namespace AS 'Namespace', t3.pl_from AS 'Internal Link From' FROM externallinks t1 LEFT JOIN page t2 ON t1.el_from = t2.page_id LEFT JOIN pagelinks t3 ON t2.page_title = t3.pl_title WHERE t1.el_index IN (SELECT s1.el_index FROM externallinks s1 WHERE s1.el_index like 'http://org.sciencemag.%' OR s1.el_index like 'https://org.sciencemag.%' OR s1.el_index like '//org.sciencemag.%') AND t2.page_namespace = 0 and t3.pl_from_namespace = 0 ORDER BY t3.pl_from
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...