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
Matěj Suchánek
.
Toggle Highlighting
SQL
USE cswiki_p; SELECT page_title, cl_to, page_is_redirect FROM (SELECT * FROM categorylinks WHERE cl_to IN ("Muži","Ženy")) AS category LEFT JOIN (SELECT * FROM page_props WHERE pp_propname = 'defaultsort') AS sorted ON pp_page = page_id JOIN page ON page_id = cl_from LEFT JOIN (SELECT * FROM templatelinks WHERE tl_title IN ("Infobox_-_panovnice", "Infobox_-_panovník") AND tl_namespace = 10) AS tl ON tl_from = page_id WHERE pp_propname IS NULL AND tl_title IS NULL AND page_namespace = 0 AND page_title LIKE '%&_%' ESCAPE '&' AND page_title NOT LIKE 'Svatý&_%' ESCAPE '&' AND SUBSTRING_INDEX(page_title, '(', 1) NOT LIKE '%-%' AND SUBSTRING_INDEX(page_title, '(', 1) NOT LIKE '%.%' AND SUBSTRING_INDEX(page_title, '(', 1) NOT LIKE '%,&_%' ESCAPE '&' AND SUBSTRING_INDEX(page_title, '(', 1) NOT LIKE '%&_a&_%' ESCAPE '&' AND SUBSTRING_INDEX(page_title, '(', 1) NOT LIKE '%&_z&_%' ESCAPE '&' AND SUBSTRING_INDEX(SUBSTRING_INDEX(page_title, '_', 2), '_', -1) NOT LIKE '(%' AND LENGTH(SUBSTRING_INDEX(page_title, '_', 1)) > 2 AND LENGTH(SUBSTRING_INDEX(SUBSTRING_INDEX(page_title, '_', 2), '_', -1)) > 2 ORDER BY page_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...