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 pl.page_title AS 'pl', ppl.pp_value AS 'ls', ph.page_title AS 'ph', pph.pp_value AS 'hs' FROM page pl LEFT JOIN page_props ppl ON (pp_page=pl.page_id AND pp_propname='defaultsort'), page ph LEFT JOIN page_props pph ON (pp_page=ph.page_id AND pp_propname='defaultsort') WHERE pl.page_namespace=0 AND ph.page_namespace=0 AND pl.page_is_redirect=0 AND ph.page_is_redirect=0 AND pl.page_title REGEXP '^[A-Z][a-zäëïöüáéíóúàèìòùâêîôû]+[\\- ][0-9]+$' AND ph.page_title REGEXP '^[A-Z][a-zäëïöüáéíóúàèìòùâêîôû]+[\\- ][0-9]+$' AND REGEXP_SUBSTR(pl.page_title,'^[^\\- ]+')=REGEXP_SUBSTR(ph.page_title,'^[^\\- ]+') AND LENGTHB(pl.page_title)<LENGTHB(ph.page_title) #GROUP BY REGEXP_SUBSTR(pl.page_title,'^[^-]+') #HAVING `ls`=''
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...