Task: Text to Code
Input (English): Find the average number of followers for the users who had some tweets.
Output (English): SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)