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 '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' from externallinks t1, page t2 WHERE t1.el_to IN (SELECT DISTINCT el_to from externallinks where el_index like 'http://org.sciencemag.%' OR t1.el_index like 'https://org.sciencemag.%' OR t1.el_index like '//org.sciencemag.%') AND t1.el_to NOT IN (SELECT DISTINCT el_to FROM externallinks WHERE el_index LIKE 'http://org.sciencemag.spj%' OR el_index LIKE 'https://org.sciencemag.spj%' OR el_index LIKE '//org.sciencemag.spj%') AND t1.el_from = t2.page_id AND t2.page_namespace = 0 ORDER BY t1.el_to ASC
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...