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
Nemo bis
.
Looks for first-level subpages of portals which were left without incoming links or transclusions, probably after being superseded by newer templates.
Toggle Highlighting
SQL
USE enwiki_p; SELECT page_title, COUNT(tl_from) FROM page JOIN templatelinks ON tl_title = page_title AND tl_from_namespace = 100 WHERE SUBSTRING_INDEX(page_title, "/", 1) IN ( SELECT page_title FROM page JOIN templatelinks ON tl_from = page_id AND page_namespace = 100 AND tl_title LIKE "Transclude_%_excerpt" AND LOCATE("/", page_title) = 0 ) ;
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...