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
Cryptic
.
Number of incoming links from mainspace to a random sample of 54395 mainspace redirects. For [[Wikipedia:Deletion review/Log/2024 May 17#Elephant population]].
Toggle Highlighting
SQL
WITH redirlinks(r_title, r_linkcount) AS ( SELECT page_title, COUNT(pl_title) FROM page LEFT JOIN pagelinks ON pl_namespace = page_namespace AND pl_title = page_title AND pl_from_namespace = 0 WHERE page_namespace = 0 AND page_is_redirect = 1 AND page_random BETWEEN 0.56 AND 0.565 GROUP BY page_title ) SELECT r_linkcount AS 'number of incoming links', COUNT(*) AS 'number of redirects' FROM redirlinks GROUP BY r_linkcount WITH ROLLUP;
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...