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
.
Portal subpages (with at least one non-deleted revision) whose base page exists. For [[Wikipedia talk:WikiProject Portals#Identifying old-style portals]] circa 11 April 2019.
Toggle Highlighting
SQL
SELECT CONCAT('[[Portal:', basepage.page_title, ']]') AS 'basepage', CONCAT('[[Portal:', subpage.page_title, ']]') AS 'subpage' FROM page subpage JOIN page basepage ON basepage.page_namespace = 100 AND basepage.page_title = REGEXP_REPLACE(subpage.page_title, '/.*', '') WHERE subpage.page_namespace = 100 AND subpage.page_title LIKE '%/%';
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...