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

16 lines
326 B
SQL

SELECT
repo_name,
count()
FROM github_events
WHERE (event_type = 'WatchEvent') AND (actor_login IN
(
SELECT actor_login
FROM github_events
WHERE (event_type = 'PullRequestEvent') AND (action = 'opened')
GROUP BY actor_login
HAVING count() >= 10
))
GROUP BY repo_name
ORDER BY count() DESC
LIMIT 50