Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
nlwiki Disambiguation pages with 0 or 1 outgoing wikilink
by
Bdijkstra
This query is marked as a draft
This query has been published
by
Bdijkstra
.
limit due to long runtime TODO: include redirects to dp's
Toggle Highlighting
SQL
SELECT CONCAT('[[', REPLACE(dp_title,'_',' '), ']]') AS dp_title, CONCAT('[[', REPLACE(lp_title,'_',' '), ']]') AS lp_title FROM ( SELECT page_id AS dp_id, page_title AS dp_title FROM page, page_props WHERE page_namespace=0 AND page_is_redirect=0 AND pp_page=page_id AND pp_propname='disambiguation' AND page_title REGEXP '^Aa' ) dp, ( SELECT page_title AS lp_title FROM page WHERE page_namespace=0 AND page_is_redirect=0 AND page_title REGEXP '^Aa.*_\\(.*\\)$' AND page_title NOT REGEXP '_\\(seizoen_[0-9]+\\)$|^Amsterdam_\\((schip,_)?1[0-9]{3}|^O2_\\(' AND NOT EXISTS (SELECT * FROM page_props WHERE pp_page=page_id AND pp_propname='disambiguation') ) lp WHERE dp_title!=lp_title AND REGEXP_REPLACE(dp_title, '_\\(.*\\)$', '')=REGEXP_REPLACE(lp_title, '_\\(.*\\)$', '') AND NOT EXISTS (SELECT * FROM pagelinks WHERE pl_from=dp_id AND pl_namespace=0 AND pl_title=lp_title) LIMIT 50
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...