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
.
1. Finds red links that start with "Ij" while a blue link exists with "IJ". 2. Finds pages that start with "IJ", without a redirect to it(s target) that start with "Ij" TODO: use pagelinks to find actual links.
Toggle Highlighting
SQL
USE nlwiki_p; SELECT page_namespace AS src-ns, page_title AS src-title, pl_namespace AS dst-ns, pl_title AS dst-title FROM ( SELECT * FROM `pagelinks` WHERE pl_namespace=0 AND # only links to main namespace pl_title REGEXP '^Ij' AND # target title starts with 'Ij' NOT EXISTS ( # target page doesn't exist SELECT * FROM `page` ps WHERE page_namespace=pl_namespace AND page_title=pl_title ) AND ( # correctly capitalized target does exist page_namespace=pl_namespace AND page_title=BINARY CONCAT(_UTF8MB4 'IJ', SUBSTRING(pl_title, 3)) ) ) pl, `page` WHERE pl_from=page_id # join to acquire source page title ORDER BY pl_title
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...