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
HTriedman (WMF)
.
Get external links from en.wikipedia.org that are linking to query.wikidata.org with an associated SparQL query in the URL parameters. Originally by PAC2, updated for new externallinks table schema for Mediawiki ≥1.41. By iterating through each associated project, we can collect many SparQL queries.
Toggle Highlighting
SQL
#SELECT # p.page_id, # p.page_title, # e.el_to_path #CONCAT(REGEXP_REPLACE(e.el_to_domain_index, '^(.*?://)(?:([^.]+)\\.)([^.]+\\.)?([^.]+\\.)?([^.]+\\.)?([^.]+\\.)?([^.]+\\.)?([^.]+\\.)?([^.]+\\.)$', '\\1\\9\\8\\7\\6\\5\\4\\3\\2'), e.el_to_path) AS url #FROM externallinks e #JOIN page p #ON e.el_from = p.page_id #WHERE # el_to_domain_index = "https://org.wikidata.query." # OR el_to_domain_index = "http://org.wikidata.query." select * from externallinks where el_to_domain_index = "https://org.wikidata.query." and el_to_path != "/"
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...