Find the average number of followers for the users who had some tweets.
SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)
average number of followers = AVG(followers); users who had some tweets refers to presence in tweets table based on UID;