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
Estopedist1
.
Toggle Highlighting
SQL
USE etwiki_p; SELECT page_title, cl_to, page_is_redirect FROM (SELECT * FROM categorylinks WHERE cl_to IN ("Inimesed")) AS category JOIN (SELECT * FROM page WHERE page_namespace = 0) AS pages ON page_id = cl_from LEFT JOIN (SELECT * FROM page_props WHERE pp_propname = 'defaultsort') AS sorted ON pp_page = page_id WHERE pp_propname IS NULL 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...