Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Most used external links from WikiProject Occitanie
by
Pyb
This query is marked as a draft
This query has been published
by
Roland45
.
External links from articles of a specific WikiProject
Toggle Highlighting
SQL
USE frwiki_p; SELECT site, COUNT(*) AS LINKS FROM (SELECT SUBSTRING_INDEX(SUBSTRING(el_to, LOCATE('://', el_to)+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 JOIN categorylinks ON cl_from = tp.page_id WHERE cl_to IN ('Portail:Occitanie/Articles_liés') AND WHERE cl_to IN ('Portail:Haute-Garonne/Articles_liés') AND tp.page_namespace = 0) sq GROUP BY site 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...