Fork of
htmlentry in sortkey
by Michael Schönitzer (WMDE)
This query is marked as a draft
This query has been published
by Michael Schönitzer (WMDE).
SQL
AخA
use dewiki_p;
#SELECT COUNT(DISTINCT page_title, cl_to, cl_sortkey_prefix)
SELECT REPLACE(page_title, '_', ' '), cl_sortkey_prefix
FROM page
join categorylinks on page_id=cl_from
WHERE cl_sortkey_prefix != "" and
page_namespace = 0 and
cl_to not like "Wikipedia:%" and
LOWER(cl_sortkey_prefix) not like LOWER(REPLACE(page_title, '_', ' ')) and
cl_sortkey_prefix not regexp '^([^[:print:]]|[[:alnum:]]|[./ \--–()]|(#|[0-9]):+[0-9])+$'
#limit 300
;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.