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
Bdijkstra
.
Toggle Highlighting
SQL
SELECT page_namespace AS ns, page_title, REGEXP_REPLACE(page_title, '^([AFMP][0-9]+|ARA|CSS|HMA[SV]|HMHS|HM[SY]|[HZ]r\\.Ms\\.|MOV|O_[0-9]+|SMS|USNS|USRC|USS)_(.*)_\\([0-9]+\\)$', '$2') AS catsort FROM page WHERE page_is_redirect=0 AND page_title REGEXP '_\\(schip,_|^([AFMP][0-9]+|ARA|CSS|HMA[SV]|HMHS|HM[SY]|[HZ]r\\.Ms\\.|MOV|O_[0-9]+|SMS|USNS|USRC|USS)_.*_\\([0-9]+\\)$' AND NOT EXISTS (SELECT * FROM categorylinks WHERE cl_to REGEXP '[Ss]chip_op_naam$' AND cl_from=page_id) ORDER BY ns, page_title # query to discover navy prefixes /*SELECT page_title FROM page, categorylinks WHERE page_is_redirect=0 AND page_title REGEXP '_\\([0-9]+\\)$' AND cl_from=page_id AND cl_to REGEXP '[Ss]chip_op_naam$' AND page_title NOT REGEXP '^([AFMP][0-9]+|ARA|CSS|HMA[SV]|HMHS|HM[SY]|[HZ]r\\.Ms\\.|MOV|O_[0-9]+|SMS|USNS|USRC|USS)_' ORDER BY page_title LIMIT 100*/
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...