Fork of Most frequent domains (frwiki, Commune de France, 2025-02) by Pyb en résidence
This query is marked as a draft This query has been published by Pyb.

SQL

x
 
USE frwiki_p;
SELECT site, COUNT(*) AS LINKS
FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to_domain_index, LOCATE('://', el_to_domain_index) + 3), '/', 1) AS site
      FROM page tp
      JOIN page mp ON mp.page_namespace = 0 AND mp.page_title = tp.page_title
      JOIN externallinks ON el_from = mp.page_id
      AND tp.page_namespace = 0) sq
    where site LIKE "org.revues"
GROUP BY site
HAVING COUNT(*) > 1000
ORDER BY LINKS DESC
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...