9 lines
170 B
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
|