This query is marked as a draft This query has been published by Cryptic.

SQL

x
 
SELECT 'N/A (no SD)' AS 'Length (in characters)',
       COUNT(*) AS 'Number of articles'
FROM page
LEFT JOIN page_props
  ON pp_page = page_id
 AND pp_propname = 'wikibase-shortdesc'
WHERE page_namespace = 0
  AND page_is_redirect = 0
  AND pp_page IS NULL
UNION
SELECT * FROM
(SELECT CASE WHEN LENGTH(pp_value) < 100 THEN LENGTH(pp_value) ELSE '100+' END AS len,
       COUNT(*)
 FROM page_props
 JOIN page
   ON page_id = pp_page
 WHERE pp_propname = 'wikibase-shortdesc'
   AND page_namespace = 0
   AND page_is_redirect = 0
 GROUP BY len
 ORDER BY CAST(len AS INT) ASC) q2;
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.

Checking query status...