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
Wurgl
.
verlinkte Weiterleitungen mit Anzahl Verlinkungen
Toggle Highlighting
SQL
SELECT CONCAT('[{{fullurl:', REPLACE(WL.page_title, '_', ' '), '&redirect=no}} ', REPLACE(WL.page_title, '_', ' '), ']') AS Weiterleitung, CONCAT('[[', REPLACE(NACH.pl_title, '_', ' '), ']]') AS Ziel, COUNT(VONPAGE.page_id) AS "Anzahl Links auf Weiterleitung", CONCAT('[[', GROUP_CONCAT(DISTINCT REPLACE(VONPAGE.page_title, '_', ' ') SEPARATOR ']], [[' LIMIT 5), ']]') AS "maximal 5 Links" FROM page AS WL, pagelinks AS VON, pagelinks AS NACH, page AS VONPAGE WHERE WL.page_namespace = 0 AND WL.page_is_redirect = 1 AND VON.pl_title = WL.page_title AND VON.pl_namespace = WL.page_namespace AND VON.pl_from_namespace = 0 AND NACH.pl_from = WL.page_id AND NACH.pl_namespace = 0 AND VONPAGE.page_id = VON.pl_from GROUP BY WL.page_id HAVING COUNT(DISTINCT VONPAGE.page_id) > 1 LIMIT 10
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...