Files
doris/regression-test/suites/github_events_p2/sql/organizationsByTheNumberOfStars.sql

9 lines
170 B
SQL

SELECT
lower(split_part(repo_name, '/', 1)) AS org,
count() AS stars
FROM github_events
WHERE event_type = 'WatchEvent'
GROUP BY org
ORDER BY stars DESC
LIMIT 50