Fork of
Longest short description
by Wizmut
This query is marked as a draft
This query has been published
by Wizmut.
SQL
AخA
# code from user Uhai
SELECT CONCAT('en.wikipedia.org/wiki/', p.page_title) AS 'Page',
pp.pp_value AS 'Short description',
CHAR_LENGTH(pp.pp_value) AS 'Length'
#(CHAR_LENGTH(pp.pp_value) + CHAR_LENGTH(p.page_title)) AS 'Length'
FROM page_props pp
INNER JOIN page p ON pp.pp_page = p.page_id AND p.page_namespace = 0
WHERE pp_propname = 'wikibase-shortdesc'
AND CHAR_LENGTH(pp.pp_value) >= 99
ORDER BY CHAR_LENGTH(pp.pp_value) DESC
# AND CHAR_LENGTH(pp.pp_value) >= 55
# AND CHAR_LENGTH(pp.pp_value) + CHAR_LENGTH(p.page_title) >= 140
#ORDER BY (CHAR_LENGTH(pp.pp_value) + CHAR_LENGTH(p.page_title)) DESC
LIMIT 1000
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.