Database: twitter_1
Question: Find the average number of followers for the users who had some tweets.
SQL:
SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)