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
ⵓ
.
Toggle Highlighting
SQL
SELECT TLD, count(*) as domains, sum(n) as links FROM ( SELECT e.el_to_domain_index , SUBSTRING_INDEX(SUBSTRING_INDEX(e.el_to_domain_index,'.',1),'/',-1) as TLD, count(*) as n FROM externallinks as e inner join (select page_id from page where page_namespace=0) as p on p.page_id= e.el_from WHERE e.el_to_domain_index like 'http%' GROUP BY e.el_to_domain_index, SUBSTRING_INDEX(SUBSTRING_INDEX(e.el_to_domain_index,'.',1),'/',-1)) as sub GROUP BY TLD
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...