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
Bunyk
.
Queries pages that were deleted but have a lot of incoming links, excluding user pages.
Toggle Highlighting
SQL
SELECT concat('[[', CASE WHEN pl_namespace = -2 THEN "Медіа:" WHEN pl_namespace = -1 THEN "Спеціальна:" WHEN pl_namespace = 0 THEN "" WHEN pl_namespace = 1 THEN "Обговорення:" WHEN pl_namespace = 2 THEN "Користувач:" WHEN pl_namespace = 3 THEN "Обговорення користувача:" WHEN pl_namespace = 4 THEN "Вікіпедія:" WHEN pl_namespace = 5 THEN "Обговорення Вікіпедії:" WHEN pl_namespace = 6 THEN "Файл:" WHEN pl_namespace = 7 THEN "Обговорення файлу:" WHEN pl_namespace = 8 THEN "MediaWiki:" WHEN pl_namespace = 9 THEN "Обговорення MediaWiki:" WHEN pl_namespace = 10 THEN "Шаблон:" WHEN pl_namespace = 11 THEN "Обговорення шаблону:" WHEN pl_namespace = 12 THEN "Довідка:" WHEN pl_namespace = 13 THEN "Обговорення довідки:" WHEN pl_namespace = 14 THEN "Категорія:" WHEN pl_namespace = 15 THEN "Обговорення категорії:" WHEN pl_namespace = 100 THEN "Портал:" WHEN pl_namespace = 101 THEN "Обговорення порталу:" WHEN pl_namespace = 446 THEN "Education Program:" WHEN pl_namespace = 447 THEN "Education Program talk:" WHEN pl_namespace = 828 THEN "Модуль:" WHEN pl_namespace = 829 THEN "Обговорення модуля:" WHEN pl_namespace = 2300 THEN "Gadget:" WHEN pl_namespace = 2301 THEN "Gadget talk:" WHEN pl_namespace = 2302 THEN "Gadget definition:" WHEN pl_namespace = 2303 THEN "Gadget definition talk:" ELSE pl_namespace END, pl_title, ']]') AS name, count(*) AS links from pagelinks -- WHERE EXISTS (SELECT 1 from archive WHERE ar_title = pl_title and ar_namespace = pl_namespace) WHERE NOT EXISTS (SELECT 1 from revision JOIN page ON rev_page = page_id WHERE page_title = pl_title and page_namespace = pl_namespace) GROUP BY pl_namespace, pl_title HAVING links > 100 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...